统计结算和用电度数都为0, 不统计

This commit is contained in:
Guoqs
2025-02-09 16:26:30 +08:00
parent 5590d362e1
commit a6c273e0e7
3 changed files with 479 additions and 79 deletions

View File

@@ -684,7 +684,13 @@ public class SettleOrderReportServiceImpl implements SettleOrderReportService {
: new BigDecimal(vo.getChargingDegree());
// 统计用电度数大于0的订单, 2025年1月14日16点00分修改
if (chargingDegree.compareTo(BigDecimal.ZERO) <= 0) {
// if (chargingDegree.compareTo(BigDecimal.ZERO) <= 0) {
// // 只统计用电量大于0的
// continue;
// }
// 统计结算和用电度数都为0, 不统计
if (chargingDegree.compareTo(BigDecimal.ZERO) <= 0 && settleAmount.compareTo(BigDecimal.ZERO) <= 0) {
// 只统计用电量大于0的
continue;
}