fix 订单数量值和金额查询错误

This commit is contained in:
xxm1995
2024-03-18 14:18:48 +08:00
committed by 喵呀
parent 27c6aba9b1
commit 04b607368b

View File

@@ -75,8 +75,8 @@ public class CockpitReportService {
if (Objects.isNull(channelOrderLine)){
channelLineReport.setOrderAmount(0).setOrderCount(0);
} else {
channelLineReport.setOrderAmount(channelOrderLine.getCount())
.setOrderCount(channelOrderLine.getSum());
channelLineReport.setOrderAmount(channelOrderLine.getSum())
.setOrderCount(channelOrderLine.getCount());
}
return channelLineReport;
}).collect(Collectors.toList());
@@ -99,8 +99,8 @@ public class CockpitReportService {
if (Objects.isNull(channelOrderLine)){
channelLineReport.setOrderAmount(0).setOrderCount(0);
} else {
channelLineReport.setOrderAmount(channelOrderLine.getCount())
.setOrderCount(channelOrderLine.getSum());
channelLineReport.setOrderAmount(channelOrderLine.getSum())
.setOrderCount(channelOrderLine.getCount());
}
return channelLineReport;
}).collect(Collectors.toList());