1.首页排行扣掉退款金额

This commit is contained in:
邱贞招 2024-09-15 16:05:13 +08:00
parent a0fb0b4ea0
commit 62d3dfbe3f

View File

@ -986,7 +986,9 @@ public class EtOrderServiceImpl implements IEtOrderService
Long areaId = area.getAreaId();
LeaderboardVo leaderboardVo = new LeaderboardVo();
leaderboardVo.setOrderCount(etOrderMapper.getOrderNum(startDateStr, endDateStr, areaId));//订单数
leaderboardVo.setOrderFee(etOrderMapper.getPayFee(startDateStr, endDateStr, null, areaId));//订单金额
BigDecimal payFee = etOrderMapper.getPayFee(startDateStr, endDateStr, null, areaId);
BigDecimal refundFee = etOrderMapper.getRefundFee(startDateStr, endDateStr, null, areaId);
leaderboardVo.setOrderFee(payFee.subtract(refundFee));//订单金额
String inOrderCount = etOrderMapper.getRidingOrder(startDateStr, endDateStr,areaId+"");
leaderboardVo.setInProgressOrderCount(Integer.parseInt(inOrderCount));
leaderboardVo.setAreaId(areaId);