update 字段错误

This commit is contained in:
YAS\29473
2025-08-20 10:43:42 +08:00
parent bb1374dbb2
commit 3115a1dbf2
2 changed files with 7 additions and 1 deletions

View File

@@ -94,5 +94,11 @@ public class EquipBusinessPolicyVO {
@JSONField(name = "DiscountServicePrice")
private BigDecimal discountServicePrice;
/**
* 服务费
* 保留小数点后四位
*/
@JsonProperty(value = "ServicePrice")
private BigDecimal servicePrice1;
}
}

View File

@@ -669,7 +669,7 @@ public class JiLinPlatformServiceImpl implements ThirdPartyPlatformService {
String replace = StringUtils.replace(startTime, ":", "");
policyInfo.setStartTime(replace);
policyInfo.setElecPrice(new BigDecimal(billingPriceVO.getElectricityPrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
policyInfo.setServicePrice(new BigDecimal(billingPriceVO.getServicePrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
policyInfo.setServicePrice1(new BigDecimal(billingPriceVO.getServicePrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
policyInfo.setDiscountElecPrice(new BigDecimal(billingPriceVO.getElectricityPrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
policyInfo.setDiscountServicePrice(new BigDecimal(billingPriceVO.getServicePrice()).setScale(4, BigDecimal.ROUND_HALF_UP));
policyInfoList.add(policyInfo);