Commit 31a46016 by 徐高华

营销记录

parent 55e99655
......@@ -258,7 +258,7 @@ public class MemberMarketingController extends WebBaseController {
@RequestMapping("/member/marketing-count")
@ResponseBody
public RestResponse<Object> marketingCount(String memberId, String enterpriseId) {
public RestResponse<Map<String,Integer>> marketingCount(String memberId, String enterpriseId) {
// 时间默认一个月
Calendar start = Calendar.getInstance();
Date endTime = start.getTime();
......@@ -282,13 +282,13 @@ public class MemberMarketingController extends WebBaseController {
// AI营销
ServiceResponse<Page<AiMemberLogListDTO>> aiMemberLogRes = aiMemberLogApiService.pageAiMemberMarketingLog(
memberId, null, Lists.newArrayList(0, 1, 6, 8), null, null, new BasePageInfo());
logger.info("ecmPage {} cardPage {} smsPage {} wechatPage {} aiMemberLogPage:{}", ecmPage.getTotalCount(),
cardPage.getTotalCount(), smsPage.getTotalCount(), wechatPage.getTotalCount(),
aiMemberLogRes.getResult().getTotalCount());
int total = ecmPage.getTotalCount() + cardPage.getTotalCount() + smsPage.getTotalCount()
+ wechatPage.getTotalCount() + aiMemberLogRes.getResult().getTotalCount();
return RestResponse.successResult(total);
Map<String,Integer> map = new HashMap<>();
map.put("ecm", ecmPage.getTotalCount()) ;
map.put("sms", smsPage.getTotalCount()) ;
map.put("coupon", cardPage.getTotalCount()) ;
map.put("wechat", wechatPage.getTotalCount()) ;
map.put("ai", aiMemberLogRes.getResult().getTotalCount()) ;
return RestResponse.successResult(map);
}
@RequestMapping("page-ai-member-log")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment