mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
小程序查询枪口列表接口添加 故障原因字段
This commit is contained in:
@@ -234,7 +234,7 @@ public class UploadRealTimeMonitorHandler extends AbstractHandler {
|
|||||||
faultReason = YKCPileFaultReasonEnum.getValueByCode(faultCode);
|
faultReason = YKCPileFaultReasonEnum.getValueByCode(faultCode);
|
||||||
// log.info("故障码:{}, 故障原因:{}", faultCode, faultReason);
|
// log.info("故障码:{}, 故障原因:{}", faultCode, faultReason);
|
||||||
}
|
}
|
||||||
realTimeMonitorData.setHardwareFault(hardwareFaultTemp);
|
realTimeMonitorData.setHardwareFault(faultReason);
|
||||||
|
|
||||||
if (!StringUtils.equals(connectorStatus, "02")) {
|
if (!StringUtils.equals(connectorStatus, "02")) {
|
||||||
log.info("0x13上传实时监测数据==交易流水号:{}, 桩编号:{}, 枪号:{}, 状态:{}, 枪是否归位:{}, 是否插枪:{}, 输出电压:{}, 输出电流:{}, 枪线温度:{}, " +
|
log.info("0x13上传实时监测数据==交易流水号:{}, 桩编号:{}, 枪号:{}, 状态:{}, 枪是否归位:{}, 是否插枪:{}, 输出电压:{}, 输出电流:{}, 枪线温度:{}, " +
|
||||||
|
|||||||
@@ -474,6 +474,10 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
|||||||
BigDecimal instantPowerTemp = outputVoltage.multiply(outputCurrent);
|
BigDecimal instantPowerTemp = outputVoltage.multiply(outputCurrent);
|
||||||
BigDecimal instantPower = instantPowerTemp.divide(new BigDecimal(1000), 2, BigDecimal.ROUND_HALF_UP);
|
BigDecimal instantPower = instantPowerTemp.divide(new BigDecimal(1000), 2, BigDecimal.ROUND_HALF_UP);
|
||||||
pileConnectorInfoVO.setInstantPower(instantPower);
|
pileConnectorInfoVO.setInstantPower(instantPower);
|
||||||
|
// 如果故障,添加故障原因
|
||||||
|
if (!StringUtils.equals("无", realTimeMonitorData.getHardwareFault())) {
|
||||||
|
pileConnectorInfoVO.setFaultReason(realTimeMonitorData.getHardwareFault());
|
||||||
|
}
|
||||||
log.info("枪口实时数据:{}", JSONObject.toJSONString(pileConnectorInfoVO));
|
log.info("枪口实时数据:{}", JSONObject.toJSONString(pileConnectorInfoVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,11 @@ public class PileConnectorInfoVO {
|
|||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障原因
|
||||||
|
*/
|
||||||
|
private String faultReason;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 车位号
|
* 车位号
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user