分时段按量金额计算修改

This commit is contained in:
墨大叔 2024-09-04 17:58:22 +08:00
parent 40aa07d1dd
commit a39a835148

View File

@ -1084,8 +1084,6 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
private BigDecimal calcTimingCountAmount(TransactionBillVO order, LocalDateTime endTime, BigDecimal totalEle) {
BigDecimal total = BigDecimal.ZERO;
endTime = endTime.plusHours(10);
// 计算每小时平均用电量
Duration betweenAvg = Duration.between(order.getSuitStartTime(), endTime);
long hours = betweenAvg.toHours();