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))
.sharpElectricityPrice(sharpElectricityPrice)
.sharpServicePrice(sharpServicePrice)
.sharpUsedElectricity(BigDecimal.ZERO)
.peakPrice(peakElectricityPrice.add(peakServicePrice))
.peakElectricityPrice(peakElectricityPrice)
.peakServicePrice(peakServicePrice)
.peakUsedElectricity(BigDecimal.ZERO)
.flatPrice(flatElectricityPrice.add(flatServicePrice))
.flatElectricityPrice(flatElectricityPrice)
.flatServicePrice(flatServicePrice)
.flatUsedElectricity(BigDecimal.ZERO)
.valleyPrice(valleyElectricityPrice.add(valleyServicePrice))
.valleyElectricityPrice(valleyElectricityPrice)
.valleyServicePrice(valleyServicePrice)
.valleyUsedElectricity(BigDecimal.ZERO)
.totalUsedElectricity(BigDecimal.ZERO)
.build();
// 保存到数据库