|
|
@@ -282,6 +282,11 @@ public class ChargingReceptionServiceImpl implements ChargingReceptionService {
|
|
|
chargeStatus.setCurrentB(getDecimalValue(jsonNode, "CurrentB"));
|
|
|
chargeStatus.setCurrentC(getDecimalValue(jsonNode, "CurrentC"));
|
|
|
|
|
|
+ // 兼容处理:如果有ChargeDetails字段,则存储为JSON字符串
|
|
|
+ if (jsonNode.has("ChargeDetails") && !jsonNode.get("ChargeDetails").isNull()) {
|
|
|
+ chargeStatus.setChargeDetails(jsonNode.get("ChargeDetails").toString());
|
|
|
+ }
|
|
|
+
|
|
|
if (existing != null) {
|
|
|
chargeStatus.setUpdateTime(LocalDateTime.now());
|
|
|
chargeStatusMapper.updateById(chargeStatus);
|