/// <summary> /// 查询活动列表 /// </summary> /// <param name="refer"></param> /// <returns></returns> public CouponActivityRefer QueryCouponActivityPageList(CouponActivityRefer refer) { var obj = refer.SearchDetail; var where = ""; if (!string.IsNullOrEmpty(obj.ActivityKey)) { where += " and ActivityKey='" + obj.ActivityKey + "'"; } if (!string.IsNullOrEmpty(obj.ActivityName)) { where += " and ActivityName like '%" + obj.ActivityName + "%'"; } var result = new CouponActivityRefer(); var param = new QueryCouponActivityPageList { PageIndex = 1, PageSize = 30, where = where, UserId = 555 }; var response = MKMSClient.Send <QueryCouponActivityPageListResponse>(param); if (response.DoFlag) { result.Total = response.Total; result.PageIndex = response.PageIndex; result.PageSize = response.PageSize; result.List = Mapper.MappGereric <CouponActivityDto, CouponActivityDetail>(response.CouponActivityPageListDtos); } return(result); }
//1展示查询列表 public ActionResult Index(CouponActivityRefer refer) { var result = CouponActivityClient.Instance.QueryCouponActivityPageList(refer); return(View(result)); }