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

This commit is contained in:
xxm1995
2024-03-18 14:18:48 +08:00
parent 095850700a
commit fe18f41f84

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());