mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 电单车协议
This commit is contained in:
@@ -631,9 +631,15 @@ public class OrderService {
|
||||
vo.setOutputCurrent(data.getOutputCurrent());
|
||||
vo.setOutputVoltage(data.getOutputVoltage());
|
||||
vo.setSOC(data.getSOC());
|
||||
BigDecimal chargingAmount = new BigDecimal(monitorData.getChargingAmount()).setScale(4, RoundingMode.HALF_UP); // 充电金额
|
||||
BigDecimal chargingAmount = BigDecimal.ZERO;
|
||||
if (monitorData.getChargingAmount() != null) {
|
||||
chargingAmount = new BigDecimal(monitorData.getChargingAmount()).setScale(4, RoundingMode.HALF_UP); // 充电金额
|
||||
}
|
||||
vo.setChargingAmount(chargingAmount.toString());
|
||||
BigDecimal chargingDegree = new BigDecimal(monitorData.getChargingDegree()).setScale(4, RoundingMode.HALF_UP); // 充电度数
|
||||
BigDecimal chargingDegree = BigDecimal.ZERO;
|
||||
if (monitorData.getChargingDegree() != null) {
|
||||
chargingDegree = new BigDecimal(monitorData.getChargingDegree()).setScale(4, RoundingMode.HALF_UP); // 充电度数
|
||||
}
|
||||
vo.setChargingDegree(chargingDegree.toString());
|
||||
vo.setSumChargingTime(monitorData.getSumChargingTime());
|
||||
vo.setTimeRemaining(monitorData.getTimeRemaining());
|
||||
|
||||
Reference in New Issue
Block a user