/// <summary> /// 新增抽奖次数配置 /// </summary> /// <param name="LotteryNumber"></param> /// <returns></returns> public bool UpdateWebAwardLotteryNumber(WebLotteryNumberDetail LotteryNumber) { var req = Mapper.Map <WebLotteryNumberDetail, UpdateWebAwardLotteryNumberRequest>(LotteryNumber); var res = MKMSClient.Send <UpdateWebAwardLotteryNumberResponse>(req); return(res.DoFlag); }
//***********************dbo.Web_Award_Record********************************* #region 拉取特殊奖品明细/抽奖明细 /// <summary> /// 拉取特殊奖品明细/抽奖明细 /// </summary> /// <param name="id"></param> /// <param name="recordDetail"></param> /// <returns></returns> public WebAwardRecordRefer QueryWebAwardRecordItem(WebAwardRecordRefer recordDetail) { var result = new WebAwardRecordRefer(); var req = new QueryWebAwardRecordRequest(); if (recordDetail.SearchDetail != null) { req.IntAwardId = recordDetail.SearchDetail.IntAwardId; req.IntUserId = recordDetail.SearchDetail.IntUserId; req.VchEmail = recordDetail.SearchDetail.VchEmail; req.VchLoginMobile = recordDetail.SearchDetail.VchLoginMobile; req.IntPrizeNo = recordDetail.SearchDetail.IntPrizeNo; req.IntPrizeType = recordDetail.SearchDetail.IntPrizeType; req.IntPrizeCaseId = recordDetail.SearchDetail.IntPrizeCaseId; req.DtStartCreateTime = recordDetail.SearchDetail.DtCreateTime; req.DtEndCreateTime = recordDetail.SearchDetail.DtEndCreateTime; } req.PageIndex = recordDetail.PageIndex; req.PageSize = recordDetail.PageSize; var res = MKMSClient.Send <QueryWebAwardRecordResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Web_Award_RecordExt, WebAwardRecordDetail>(res.WebAwardRecordDos); result.Total = res.Total; } result.SearchDetail = recordDetail.SearchDetail; result.PageIndex = recordDetail.PageIndex; result.PageSize = recordDetail.PageSize; return(result); }
/// <summary> /// 查询活动列表 /// </summary> /// <param name="refer"></param> /// <returns></returns> public CouponActivityConfigureRefer QueryCouponActivityConfigurePageList(CouponActivityConfigureRefer refer) { var obj = refer.SearchDetail; var where = ""; if ((obj.ActivitySysNo ?? 0) > 0) { where += " and ActivitySysNo=" + obj.ActivitySysNo; } if (!string.IsNullOrEmpty(obj.CouponKey)) { where += " and CouponKey='" + obj.CouponKey + "'"; } var result = new CouponActivityConfigureRefer(); var param = new QueryCouponActivityConfigurePageList { PageIndex = 1, PageSize = 30, where = where }; var response = MKMSClient.Send <QueryCouponActivityConfigurePageListResponse>(param); if (response.DoFlag) { result.Total = response.Total; result.PageIndex = response.PageIndex; result.PageSize = response.PageSize; result.List = Mapper.MappGereric <CouponActivityConfigureDto, CouponActivityConfigureDetail>(response.CouponActivityConfigurePageListDtos); } return(result); }
public bool UpdateWebAwardPrize(WebPrizeDetail webPrize) { var req = Mapper.Map <WebPrizeDetail, UpdateWebAwardPrizeRequest>(webPrize); var res = MKMSClient.Send <UpdateWebAwardPrizeResponse>(req); return(res.DoFlag); }
/// <summary> /// 新增奖品配置 /// </summary> /// <returns></returns> public bool AddWebAwardPrizeItem(WebPrizeItemDetail prizeItem) { var req = Mapper.Map <WebPrizeItemDetail, AddWebAwardPrizeItemRequest>(prizeItem); var res = MKMSClient.Send <AddWebAwardPrizeItemResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改捆绑奖品 /// </summary> /// <param name="prizeBundle"></param> /// <returns></returns> public bool UpdateWebPrizeBundle(WebPrizeBundleDetail prizeBundle) { var req = Mapper.Map <WebPrizeBundleDetail, UpdateWebPrizeBundleRequest>(prizeBundle); var res = MKMSClient.Send <UpdateWebPrizeBundleResponse>(req); return(res.DoFlag); }
//***********************dbo.Web_Award_Prize********************************* #region 奖项配置列表 /// <summary> /// 奖项配置列表 /// </summary> /// <param name="webPrize"></param> /// <returns></returns> public WebPrizeRefer QueryWebAwardPrize(WebPrizeRefer webPrize) { var result = new WebPrizeRefer(); var req = new QueryWebAwardPrizeRequest(); if (webPrize.SearchDetail != null) { req.IntAwardId = webPrize.SearchDetail.IntAwardId; req.VchPrizeName = webPrize.SearchDetail.VchPrizeName; req.IntPrizeNo = webPrize.SearchDetail.IntPrizeNo; req.IntPrizeWeight = webPrize.SearchDetail.IntPrizeWeight; req.IntPrizeCount = webPrize.SearchDetail.IntPrizeCount; req.IntStatus = webPrize.SearchDetail.IntStatus; req.IntNumId = webPrize.SearchDetail.IntNumId; } var res = MKMSClient.Send <QueryWebAwardPrizeResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Web_Award_PrizeExt, WebPrizeDetail>(res.WebAwardPrizeDos); } result.SearchDetail = webPrize.SearchDetail; return(result); }
/// <summary> /// 修改用户标签组配置 /// </summary> /// <param name="userTags"></param> /// <returns></returns> public bool UpdateWebAwardUserTags(WebAwardUserTagsDetail userTags) { var req = Mapper.Map <WebAwardUserTagsDetail, UpdateWebAwardUserTagsRequest>(userTags); var res = MKMSClient.Send <UpdateWebAwardUserTagsResponse>(req); return(res.DoFlag); }
/// <summary> /// 查询添加记录 /// </summary> /// <param name="search"></param> /// <returns></returns> public SearchManagementRefer QueryWebSearchAddRecords(SearchManagementRefer search) { var result = new SearchManagementRefer(); var req = new QueryWebSearchAddRecordsRequest(); if (search.SearchManCheckDetail != null) { req.SearchManCheck = Mapper.Map <SearchManCheckDetail, SearchManCheck>(search.SearchManCheckDetail); } req.PageIndex = search.PageIndex; req.PageSize = search.PageSize; var res = MKMSClient.Send <QueryWebSearchAddRecordsResponse>(req); if (res.DoFlag) { result.SearchList = Mapper.MappGereric <SearchManCheck, SearchManCheckDetail>(res.SearchManCheckList); result.Total = res.Total; result.SearchManCheckDetail = search.SearchManCheckDetail; result.PageIndex = search.PageIndex; result.PageSize = search.PageSize; } else { result.ErrorMsg = res.DoResult; } return(result); }
/// <summary> /// 新增抽奖活动 /// </summary> /// <param name="webAward"></param> /// <returns></returns> public bool AddWebAward(WebAwardDetail webAward) { var req = Mapper.Map <WebAwardDetail, AddWebAwardRequest>(webAward); var res = MKMSClient.Send <AddWebAwardResponse>(req); return(res.DoFlag); }
//***********************dbo.Web_Award********************************* #region 抽奖活动列表 /// <summary> /// 抽奖活动列表 /// </summary> /// <param name="webAward"></param> /// <returns></returns> public WebAwardRefer QueryWebAward(WebAwardRefer webAward) { var result = new WebAwardRefer(); var req = new QueryWebAwardRequest(); if (webAward.SearchDetail != null) { req.VchAwardName = webAward.SearchDetail.VchAwardName; req.DtStartTime = webAward.SearchDetail.DtStartTime; req.DtEndTime = webAward.SearchDetail.DtEndTime; req.IntStatus = webAward.SearchDetail.IntStatus; } req.PageIndex = webAward.PageIndex; req.PageSize = webAward.PageSize; var res = MKMSClient.Send <QueryWebAwardResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Web_AwardExt, WebAwardDetail>(res.WebAwardDos); result.Total = res.Total; } result.SearchDetail = webAward.SearchDetail; result.PageIndex = webAward.PageIndex; result.PageSize = webAward.PageSize; return(result); }
//添加团信息 public bool AddGroupGoods(GroupGoodsDetail request) { var param = Mapper.Map <GroupGoodsDetail, AddGroupGoodsRequest>(request); var response = MKMSClient.Send <AddGroupGoodsResponse>(param); return(response.DoFlag); }
/// <summary> /// 添加一条记录 /// </summary> /// <param name="request"></param> /// <returns></returns> public AddSearchManCheckResponse AddSearchManCheck(SearchManCheckDetail request) { var result = new AddSearchManCheckResponse(); var req = Mapper.Map <SearchManCheckDetail, AddSearchManCheckRequest>(request); result = MKMSClient.Send <AddSearchManCheckResponse>(req); return(result); }
/// <summary> /// 修改优惠码活动 /// </summary> /// <param name="req"></param> /// <returns></returns> public bool UpdateActivity(DiscountActivityRes req, out string message) { var param = Mapper.Map <DiscountActivityRes, UpdateActivityRequest>(req); var response = MKMSClient.Send <UpdateActivityResponse>(param); message = response.DoResult; return(response.DoFlag); }
/// <summary> /// 删除奖品配置 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelWebAwardPrizeItem(int id) { var req = new DelWebAwardPrizeItemRequest(); req.IntPrizeItemId = id; var res = MKMSClient.Send <DelWebAwardPrizeItemResponse>(req); return(res.DoFlag); }
/// <summary> /// 删除推广活动 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelActivity(int id) { var req = new DelSpreadActivityRequest(); req.ActivityId = id; var res = MKMSClient.Send <DelSpreadActivityResponse>(req); return(res.DoFlag); }
public bool CartSplitIsEnable(int?SplitNo, int?IsValid) { var response = MKMSClient.Send <SplitIsEnableRes>(new SplitIsEnableReq() { SplitNo = SplitNo, IsValid = IsValid }); return(response.DoFlag); }
/// <summary> /// 新增活动 /// </summary> /// <param name="request"></param> /// <returns></returns> public bool AddCouponActivity(CouponActivityDetail request) { var param = Mapper.Map <CouponActivityDetail, AddCouponActivity>(request); param.UserId = 555; var response = MKMSClient.Send <AddCouponActivityResponse>(param); return(response.DoFlag); }
/// <summary> /// 新增商品搜索指定位置显示 /// </summary> /// <param name="request"></param> /// <returns></returns> public AddSortProductResponse AddSortProduct(SortProductDetail request) { var req = Mapper.Map <SortProductDetail, AddSortProductRequest>(request); req.IsDelete = request.IsDelete ?? false; var response = MKMSClient.Send <AddSortProductResponse>(req); return(response); }
/// <summary> /// 商品搜索词小项是否被审核 /// </summary> /// <param name="cid"></param> /// <returns></returns> public bool IsSearchItem(string cid) { var req = new IsAuditSearchItemRequest() { CheckId = cid }; var res = MKMSClient.Send <IsAuditSearchItemResponse>(req); return(res.DoFlag); }
public bool UpdateWebAwardPrizeState(int id, int state) { var req = new UpdateWebAwardPrizeStateRequest(); req.IntPrizeId = id; req.IntStatus = state; var res = MKMSClient.Send <UpdateWebAwardPrizeStateResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改捆绑奖品状态 /// </summary> /// <returns></returns> public bool UpdateWebPrizeBundleState(int id, int state) { var req = new UpdateWebPrizeBundleStateRequest(); req.BSysNos = id; req.IntStatus = state; var res = MKMSClient.Send <UpdateWebPrizeBundleStateResponse>(req); return(res.DoFlag); }
/// <summary> /// 更新活动 /// </summary> /// <param name="request"></param> /// <returns></returns> public bool UpdateCouponActivityConfigure(CouponActivityConfigureDetail request) { var upd = new UpdateCouponActivityConfigure(); upd.SysNo = request.SysNo; upd.UpdateTo = Mapper.Map <CouponActivityConfigureDetail, CouponActivityConfigureDto>(request); upd.UserId = 555; var response = MKMSClient.Send <UpdateCouponActivityConfigureResponse>(upd); return(response.DoFlag); }
/// <summary> /// 删除优惠码 /// </summary> /// <param name="discountCode"></param> /// <param name="message"></param> /// <returns></returns> public bool DeleteDiscountCode(string discountCode, out string message) { var param = new DeleteDiscountCodeRequest() { DiscountCode = discountCode }; var response = MKMSClient.Send <DeleteDiscountCodeResponse>(param); message = response.DoResult; return(response.DoFlag); }
//更新活动信息 public bool UpdateGroupActivity(GroupActivityDetail request) { UpdateGroupActivityInfo upd = new UpdateGroupActivityInfo(); upd.SysNo = request.SysNo; upd.UpdateTo = request; var param = Mapper.Map <UpdateGroupActivityInfo, UpdateGroupActivityRequest>(upd); var response = MKMSClient.Send <UpdateGroupActivityResponse>(param); return(response.DoFlag); }
public bool CancelExecuteBatch(int?sysNo, string operater) { var param = new UpdateDiscountBatchStateRequest() { SysNo = sysNo, ExeStatus = 4, //取消执行 ExeDescription = "后台系统:取消执行,操作人:" + operater + ",操作时间:" + DateTime.Now, }; var response = MKMSClient.Send <UpdateActivityResponse>(param); return(response.DoFlag); }
/// <summary> /// 根据Id查询单条信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public WebAwardDetail QueryWebAwardById(WebAwardDetail webAward) { var result = new WebAwardDetail(); var req = new QueryWebAwardByIdRequest(); req.IntAwardId = webAward.IntAwardId; var res = MKMSClient.Send <QueryWebAwardByIdResponse>(req); result = Mapper.Map <Web_AwardExt, WebAwardDetail>(res.WebAwardDos); return(result); }
/// <summary> /// 获取活动列表 /// </summary> /// <returns></returns> public Activity QueryAllActivity() { var result = new Activity(); var req = new GetAllActivityRequest(); var res = MKMSClient.Send <GetAllActivityResponse>(req); if (res.DoFlag) { result.Data = res.Data; } return(result); }
/// <summary> /// 删除活动下优惠券 /// </summary> /// <param name="request"></param> /// <returns></returns> public bool DeleteCouponActivityConfigure(int SysNo) { var response = MKMSClient.Send <DeleteCouponActivityConfigureResponse>(new DeleteCouponActivityConfigure { SysNo = SysNo, IsDelete = true, UserId = 555 } ); return(response.DoFlag); }
/// <summary> /// 修改推广活动状态 /// </summary> /// <param name="id"></param> /// <param name="state"></param> /// <returns></returns> public bool UpdateState(int id, int state) { var req = new UpdateSpreadActivityStateRequest(); req.ActivityId = id; req.Status = (Myzj.MKMS.ServiceModel.ActivityStatus)state; var res = MKMSClient.Send <UpdateSpreadActivityStateResponse>(req); return(res.DoFlag); }