Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop

This commit is contained in:
Chopper711 2024-04-01 19:14:34 +08:00
commit 88ab071ac7
2 changed files with 3 additions and 3 deletions

View File

@ -135,9 +135,9 @@ public class IndexStatisticsServiceImpl implements IndexStatisticsService {
//下单统计
Map<String, Object> map = storeFlowStatisticsService.getOrderStatisticsPrice();
//今日下单数
indexStatisticsVO.setTodayOrderNum(map.get("num") == null ? 0L : (Long) map.get("num"));
indexStatisticsVO.setTodayOrderNum(map.get("num") == null ? 0L : Long.parseLong(map.get("num").toString()));
//今日下单金额
indexStatisticsVO.setTodayOrderPrice(map.get("price") == null ? 0D : (Double) map.get("price"));
indexStatisticsVO.setTodayOrderPrice(map.get("price") == null ? 0D : Double.parseDouble(map.get("price").toString()));
//今日新增会员数量
indexStatisticsVO.setTodayMemberNum(memberStatisticsService.todayMemberNum());

View File

@ -37,7 +37,7 @@ public class RefundOrderStatisticsServiceImpl extends ServiceImpl<RefundOrderSta
QueryWrapper queryWrapper = getQueryWrapper(statisticsQueryParam);
queryWrapper.select("SUM(final_price) AS price");
return (Double) this.getMap(queryWrapper).get("price");
return Double.parseDouble(this.getMap(queryWrapper).get("price").toString());
}