bugfix 创建订单添加各时段用电量初始值

This commit is contained in:
Lemon
2025-11-06 09:07:06 +08:00
parent c0ff8ac81f
commit 1c4c76237c

View File

@@ -5080,15 +5080,20 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
.sharpPrice(sharpElectricityPrice.add(sharpServicePrice)) .sharpPrice(sharpElectricityPrice.add(sharpServicePrice))
.sharpElectricityPrice(sharpElectricityPrice) .sharpElectricityPrice(sharpElectricityPrice)
.sharpServicePrice(sharpServicePrice) .sharpServicePrice(sharpServicePrice)
.sharpUsedElectricity(BigDecimal.ZERO)
.peakPrice(peakElectricityPrice.add(peakServicePrice)) .peakPrice(peakElectricityPrice.add(peakServicePrice))
.peakElectricityPrice(peakElectricityPrice) .peakElectricityPrice(peakElectricityPrice)
.peakServicePrice(peakServicePrice) .peakServicePrice(peakServicePrice)
.peakUsedElectricity(BigDecimal.ZERO)
.flatPrice(flatElectricityPrice.add(flatServicePrice)) .flatPrice(flatElectricityPrice.add(flatServicePrice))
.flatElectricityPrice(flatElectricityPrice) .flatElectricityPrice(flatElectricityPrice)
.flatServicePrice(flatServicePrice) .flatServicePrice(flatServicePrice)
.flatUsedElectricity(BigDecimal.ZERO)
.valleyPrice(valleyElectricityPrice.add(valleyServicePrice)) .valleyPrice(valleyElectricityPrice.add(valleyServicePrice))
.valleyElectricityPrice(valleyElectricityPrice) .valleyElectricityPrice(valleyElectricityPrice)
.valleyServicePrice(valleyServicePrice) .valleyServicePrice(valleyServicePrice)
.valleyUsedElectricity(BigDecimal.ZERO)
.totalUsedElectricity(BigDecimal.ZERO)
.build(); .build();
// 保存到数据库 // 保存到数据库