优化管理端首页数据统计
This commit is contained in:
@@ -2,6 +2,9 @@ package cn.lili.controller.statistics;
|
||||
|
||||
import cn.lili.common.enums.ResultUtil;
|
||||
import cn.lili.common.vo.ResultMessage;
|
||||
import cn.lili.modules.statistics.model.dto.GoodsStatisticsQueryParam;
|
||||
import cn.lili.modules.statistics.model.dto.StatisticsQueryParam;
|
||||
import cn.lili.modules.statistics.model.enums.StatisticsQuery;
|
||||
import cn.lili.modules.statistics.model.vo.GoodsStatisticsDataVO;
|
||||
import cn.lili.modules.statistics.model.vo.IndexNoticeVO;
|
||||
import cn.lili.modules.statistics.model.vo.IndexStatisticsVO;
|
||||
@@ -46,14 +49,17 @@ public class IndexStatisticsManagerController {
|
||||
|
||||
@ApiOperation(value = "获取首页查询热卖商品TOP10")
|
||||
@GetMapping("/goodsStatistics")
|
||||
public ResultMessage<List<GoodsStatisticsDataVO>> goodsStatistics() {
|
||||
return ResultUtil.data(indexStatisticsService.goodsStatisticsOfMonth());
|
||||
public ResultMessage<List<GoodsStatisticsDataVO>> goodsStatistics(GoodsStatisticsQueryParam goodsStatisticsQueryParam) {
|
||||
|
||||
//按照金额查询
|
||||
goodsStatisticsQueryParam.setType(StatisticsQuery.PRICE.name());
|
||||
return ResultUtil.data(indexStatisticsService.goodsStatistics(goodsStatisticsQueryParam));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取首页查询热卖店铺TOP10")
|
||||
@GetMapping("/storeStatistics")
|
||||
public ResultMessage<List<StoreStatisticsDataVO>> storeStatistics() {
|
||||
return ResultUtil.data(indexStatisticsService.storeStatisticsOfMonth());
|
||||
public ResultMessage<List<StoreStatisticsDataVO>> storeStatistics(StatisticsQueryParam statisticsQueryParam) {
|
||||
return ResultUtil.data(indexStatisticsService.storeStatistics(statisticsQueryParam));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "通知提示信息")
|
||||
|
||||
Reference in New Issue
Block a user