mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 07:11:52 +08:00
code review:数据统计
This commit is contained in:
parent
d2112458d2
commit
d842708c23
@ -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.ArticleDO;
|
||||
import cn.iocoder.yudao.module.promotion.dal.mysql.article.ArticleCategoryMapper;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
@ -30,7 +31,9 @@ public class ArticleCategoryServiceImpl implements ArticleCategoryService {
|
||||
|
||||
@Resource
|
||||
private ArticleCategoryMapper articleCategoryMapper;
|
||||
|
||||
@Resource
|
||||
@Lazy // 延迟加载,解决循环依赖问题
|
||||
private ArticleService articleService;
|
||||
|
||||
@Override
|
||||
|
@ -103,6 +103,8 @@ public class MemberStatisticsController {
|
||||
return success(memberStatisticsService.getRegisterTerminalStatisticsList());
|
||||
}
|
||||
|
||||
// TODO 芋艿:已经 review
|
||||
// TODO @疯狂:要注意 date 的排序;
|
||||
@GetMapping("/user-count-comparison")
|
||||
@Operation(summary = "获得用户数量对照")
|
||||
@PreAuthorize("@ss.hasPermission('statistics:member:query')")
|
||||
|
@ -124,6 +124,7 @@ public class TradeStatisticsController {
|
||||
@Operation(summary = "获得订单量趋势统计")
|
||||
@PreAuthorize("@ss.hasPermission('statistics:trade:query')")
|
||||
public CommonResult<List<DataComparisonRespVO<TradeOrderTrendRespVO>>> getOrderCountTrendComparison(@Valid TradeOrderTrendReqVO reqVO) {
|
||||
// TODO @疯狂:要注意 date 的排序;
|
||||
return success(tradeOrderStatisticsService.getOrderCountTrendComparison(reqVO));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user