mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31: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.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
|
||||||
|
@ -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')")
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user