Commit bdc1cef4 by guojuxing

消费构成-消费年龄-概况

parent 17086353
......@@ -16,7 +16,7 @@ import com.gic.enterprise.utils.ResultControllerUtils;
public class ConsumeStructureController {
private static final Logger log = LogManager.getLogger(ConsumeStructureController.class);
@Autowired
private ConsumeStructureApiService performanceOverviewApiService;
private ConsumeStructureApiService consumeStructureApiService;
@Autowired
private StoreSearchUtils storeSearchUtils;
......@@ -33,6 +33,14 @@ public class ConsumeStructureController {
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()));
return ResultControllerUtils.commonResult(performanceOverviewApiService.queryAgeConsumeShare(params));
return ResultControllerUtils.commonResult(consumeStructureApiService.queryAgeConsumeShare(params));
}
@RequestMapping("get-age-consume-survey")
public RestResponse queryAgeConsumeSurvey(AgeConsumeShareQO 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()));
return ResultControllerUtils.commonResult(consumeStructureApiService.queryAgeConsumeSurvey(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