mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update 电单车
This commit is contained in:
@@ -520,8 +520,12 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
||||
BigDecimal outputCurrent = new BigDecimal(realTimeMonitorData.getOutputCurrent());
|
||||
pileConnectorInfoVO.setCurrent(outputCurrent);
|
||||
pileConnectorInfoVO.setSOC(realTimeMonitorData.getSOC()); // 充电百分比
|
||||
pileConnectorInfoVO.setChargingAmount(new BigDecimal(realTimeMonitorData.getChargingAmount()));
|
||||
pileConnectorInfoVO.setChargingDegree(new BigDecimal(realTimeMonitorData.getChargingDegree()));
|
||||
if (StringUtils.isNotBlank(realTimeMonitorData.getChargingAmount())) {
|
||||
pileConnectorInfoVO.setChargingAmount(new BigDecimal(realTimeMonitorData.getChargingAmount()));
|
||||
}
|
||||
if (StringUtils.isNotBlank(realTimeMonitorData.getChargingDegree())) {
|
||||
pileConnectorInfoVO.setChargingDegree(new BigDecimal(realTimeMonitorData.getChargingDegree()));
|
||||
}
|
||||
pileConnectorInfoVO.setGunLineTemperature(realTimeMonitorData.getGunLineTemperature()); // 枪线温度
|
||||
pileConnectorInfoVO.setTimeRemaining(realTimeMonitorData.getTimeRemaining()); // 剩余时间
|
||||
pileConnectorInfoVO.setChargingTime(realTimeMonitorData.getSumChargingTime()); // 已充时长
|
||||
@@ -529,7 +533,6 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
||||
BigDecimal instantPowerTemp = outputVoltage.multiply(outputCurrent);
|
||||
BigDecimal instantPower = instantPowerTemp.divide(new BigDecimal(1000), 2, BigDecimal.ROUND_HALF_UP);
|
||||
pileConnectorInfoVO.setInstantPower(instantPower);
|
||||
|
||||
log.info("枪口实时数据:{}", JSON.toJSONString(pileConnectorInfoVO));
|
||||
}
|
||||
// 查缓存是否故障
|
||||
|
||||
Reference in New Issue
Block a user