update 电单车

This commit is contained in:
Guoqs
2024-09-13 16:51:09 +08:00
parent 871b8bea77
commit 36523432da

View File

@@ -294,7 +294,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
List<RealTimeMonitorData> chargingRealTimeData = getChargingRealTimeData(orderListVO.getTransactionCode());
if (CollectionUtils.isNotEmpty(chargingRealTimeData)) {
RealTimeMonitorData realTimeMonitorData = chargingRealTimeData.get(0);
orderListVO.setRealTimeAmount(new BigDecimal(realTimeMonitorData.getChargingAmount()));
orderListVO.setRealTimeAmount(realTimeMonitorData.getChargingAmount() != null ? new BigDecimal(realTimeMonitorData.getChargingAmount()) : BigDecimal.ZERO);
orderListVO.setRealTimeChargingDegree(realTimeMonitorData.getChargingDegree());
}