mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
小程序查询枪口列表接口添加 故障原因字段
This commit is contained in:
@@ -474,6 +474,10 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
BigDecimal instantPowerTemp = outputVoltage.multiply(outputCurrent);
|
||||
BigDecimal instantPower = instantPowerTemp.divide(new BigDecimal(1000), 2, BigDecimal.ROUND_HALF_UP);
|
||||
pileConnectorInfoVO.setInstantPower(instantPower);
|
||||
// 如果故障,添加故障原因
|
||||
if (!StringUtils.equals("无", realTimeMonitorData.getHardwareFault())) {
|
||||
pileConnectorInfoVO.setFaultReason(realTimeMonitorData.getHardwareFault());
|
||||
}
|
||||
log.info("枪口实时数据:{}", JSONObject.toJSONString(pileConnectorInfoVO));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,11 @@ public class PileConnectorInfoVO {
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 故障原因
|
||||
*/
|
||||
private String faultReason;
|
||||
|
||||
/**
|
||||
* 车位号
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user