fix: 下单人数统计问题处理

This commit is contained in:
Chopper711 2023-09-27 18:43:10 +08:00
parent 01419cde15
commit 515ffbcf0a

View File

@ -134,7 +134,7 @@ public class StoreFlowStatisticsServiceImpl extends ServiceImpl<StoreFlowStatist
//查询下单人数的sql
queryWrapper.select("count(DISTINCT member_id) AS num");
//获取查询结果
Map memberNum = this.getMap(queryWrapper);
Map memberNum = orderStatisticsService.getMap(queryWrapper);
//写入下单人数
orderOverviewVO.setOrderMemberNum(memberNum != null && memberNum.containsKey("num") ? (Long) memberNum.get("num") : 0L);
}