mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-08 07:58:04 +08:00
update 电单车
This commit is contained in:
@@ -294,7 +294,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
List<RealTimeMonitorData> chargingRealTimeData = getChargingRealTimeData(orderListVO.getTransactionCode());
|
List<RealTimeMonitorData> chargingRealTimeData = getChargingRealTimeData(orderListVO.getTransactionCode());
|
||||||
if (CollectionUtils.isNotEmpty(chargingRealTimeData)) {
|
if (CollectionUtils.isNotEmpty(chargingRealTimeData)) {
|
||||||
RealTimeMonitorData realTimeMonitorData = chargingRealTimeData.get(0);
|
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());
|
orderListVO.setRealTimeChargingDegree(realTimeMonitorData.getChargingDegree());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user