Commit 62cf666f by guojuxing

消费构成-是否会员-区域

parent 12184c08
......@@ -153,4 +153,43 @@ public class ConsumeStructureController {
params.setGroupIdList(storeSearchUtils.getChildrenStoreGroupIdList(params.getParentId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.pageNewOldConsumeArea(params));
}
@RequestMapping("get-whether-consume-rate")
public RestResponse getWhetherConsumeRate(WhetherConsumeRateQO params) {
log.info("消费构成-是否会员-占比参数:{}", JSON.toJSONString(params));
params.setOnlineStoreIdList(storeSearchUtils.onLineStoreSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setStoreInfoIdList(storeSearchUtils.storeSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setMemberCardIdList(dataAuthUtils.getMbrAreaId(params.getUserId(), params.getEnterpriseId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.getWhetherConsumeRate(params));
}
@RequestMapping("get-whether-consume-trend")
public RestResponse queryWhetherConsumeTrend(WhetherConsumeRateQO params) {
log.info("消费构成-是否会员-趋势参数:{}", JSON.toJSONString(params));
params.setOnlineStoreIdList(storeSearchUtils.onLineStoreSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setStoreInfoIdList(storeSearchUtils.storeSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setMemberCardIdList(dataAuthUtils.getMbrAreaId(params.getUserId(), params.getEnterpriseId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.queryWhetherConsumeTrend(params));
}
@RequestMapping("get-whether-consume-survey")
public RestResponse queryWhetherConsumeSurvey(WhetherConsumeRateQO params) {
log.info("消费构成-是否会员-概况参数:{}", JSON.toJSONString(params));
params.setOnlineStoreIdList(storeSearchUtils.onLineStoreSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setStoreInfoIdList(storeSearchUtils.storeSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setMemberCardIdList(dataAuthUtils.getMbrAreaId(params.getUserId(), params.getEnterpriseId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.queryWhetherConsumeSurvey(params));
}
@RequestMapping("get-whether-consume-area")
public RestResponse pageWhetherConsumeArea(WhetherConsumeAreaQO params) {
log.info("消费构成-是否会员-区域参数:{}", JSON.toJSONString(params));
params.setOnlineStoreIdList(storeSearchUtils.onLineStoreSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
params.setStoreInfoIdList(storeSearchUtils.storeSearch(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()));
if (params.getLevel() != null) {
params.setLevel(storeSearchUtils.getLevel(params.getUserId(), params.getEnterpriseId(), params.getSearchJson()).getLevel());
}
params.setGroupIdList(storeSearchUtils.getChildrenStoreGroupIdList(params.getParentId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.pageWhetherConsumeArea(params));
}
}
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