code review:数据统计

This commit is contained in:
YunaiV 2023-10-16 23:42:54 +08:00
parent d2112458d2
commit d842708c23
3 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import cn.iocoder.yudao.module.promotion.convert.article.ArticleCategoryConvert;
import cn.iocoder.yudao.module.promotion.dal.dataobject.article.ArticleCategoryDO; import cn.iocoder.yudao.module.promotion.dal.dataobject.article.ArticleCategoryDO;
import cn.iocoder.yudao.module.promotion.dal.dataobject.article.ArticleDO; import cn.iocoder.yudao.module.promotion.dal.dataobject.article.ArticleDO;
import cn.iocoder.yudao.module.promotion.dal.mysql.article.ArticleCategoryMapper; import cn.iocoder.yudao.module.promotion.dal.mysql.article.ArticleCategoryMapper;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
@ -30,7 +31,9 @@ public class ArticleCategoryServiceImpl implements ArticleCategoryService {
@Resource @Resource
private ArticleCategoryMapper articleCategoryMapper; private ArticleCategoryMapper articleCategoryMapper;
@Resource @Resource
@Lazy // 延迟加载解决循环依赖问题
private ArticleService articleService; private ArticleService articleService;
@Override @Override

View File

@ -103,6 +103,8 @@ public class MemberStatisticsController {
return success(memberStatisticsService.getRegisterTerminalStatisticsList()); return success(memberStatisticsService.getRegisterTerminalStatisticsList());
} }
// TODO 芋艿已经 review
// TODO @疯狂要注意 date 的排序
@GetMapping("/user-count-comparison") @GetMapping("/user-count-comparison")
@Operation(summary = "获得用户数量对照") @Operation(summary = "获得用户数量对照")
@PreAuthorize("@ss.hasPermission('statistics:member:query')") @PreAuthorize("@ss.hasPermission('statistics:member:query')")

View File

@ -124,6 +124,7 @@ public class TradeStatisticsController {
@Operation(summary = "获得订单量趋势统计") @Operation(summary = "获得订单量趋势统计")
@PreAuthorize("@ss.hasPermission('statistics:trade:query')") @PreAuthorize("@ss.hasPermission('statistics:trade:query')")
public CommonResult<List<DataComparisonRespVO<TradeOrderTrendRespVO>>> getOrderCountTrendComparison(@Valid TradeOrderTrendReqVO reqVO) { public CommonResult<List<DataComparisonRespVO<TradeOrderTrendRespVO>>> getOrderCountTrendComparison(@Valid TradeOrderTrendReqVO reqVO) {
// TODO @疯狂要注意 date 的排序
return success(tradeOrderStatisticsService.getOrderCountTrendComparison(reqVO)); return success(tradeOrderStatisticsService.getOrderCountTrendComparison(reqVO));
} }