Commit 7e258a2d by guojuxing

消费构成-等级-趋势

parent 244bc233
package com.gic.cloud.web.controller;
import com.gic.cloud.web.auth.DataAuthUtils;
import com.gic.data.api.qo.consumestructure.AgeConsumeAreaQO;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -9,8 +7,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.cloud.web.auth.DataAuthUtils;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.data.api.qo.consumestructure.AgeConsumeAreaQO;
import com.gic.data.api.qo.consumestructure.AgeConsumeShareQO;
import com.gic.data.api.qo.consumestructure.GradeConsumeTrendQO;
import com.gic.data.api.service.consumestructure.ConsumeStructureApiService;
import com.gic.enterprise.utils.ResultControllerUtils;
......@@ -60,4 +61,12 @@ public class ConsumeStructureController {
params.setMemberCardIdList(dataAuthUtils.getMbrAreaId(params.getUserId(), params.getEnterpriseId()));
return ResultControllerUtils.commonResult(consumeStructureApiService.pageAgeConsumeArea(params));
}
@RequestMapping("get-grade-consume-trend")
public RestResponse getGradeConsumeTrend(GradeConsumeTrendQO 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.queryGradeConsumeTrend(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