Commit 17086353 by guojuxing

消费构成-年龄-年龄段消费占比

parent ec5e1e79
package com.gic.cloud.web.controller;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.data.api.qo.consumestructure.AgeConsumeShareQO;
import com.gic.data.api.service.consumestructure.ConsumeStructureApiService;
import com.gic.enterprise.utils.ResultControllerUtils;
@RestController
public class ConsumeStructureController {
private static final Logger log = LogManager.getLogger(ConsumeStructureController.class);
@Autowired
private ConsumeStructureApiService performanceOverviewApiService;
@Autowired
private StoreSearchUtils storeSearchUtils;
/**
* 年龄消费占比(订单人数/订单数/销售额)
* @Title: queryAgeConsumeShare

* @Description:

* @author guojuxing
* @param params

* @return com.gic.commons.webapi.reponse.RestResponse


*/
@RequestMapping("get-age-consume-share")
public RestResponse queryAgeConsumeShare(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(performanceOverviewApiService.queryAgeConsumeShare(params));
}
}
......@@ -148,4 +148,5 @@
<dubbo:reference interface="com.gic.data.api.service.IndexSalesApiService" id="indexSalesApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.data.api.service.performanceoverview.PerformanceOverviewApiService" id="performanceOverviewApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.data.api.service.consumestructure.ConsumeStructureApiService" id="consumeStructureApiService" timeout="6000" retries="0"/>
</beans>
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