mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
打印日志
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package com.jsowell.common.enums.ykc;
|
package com.jsowell.common.enums.ykc;
|
||||||
|
|
||||||
|
import com.jsowell.common.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电接口状态
|
* 充电接口状态
|
||||||
* 桩传过来的枪口状态: 0x00:离线 0x01:故障 0x02:空闲 0x03:充电
|
* 桩传过来的枪口状态: 0x00:离线 0x01:故障 0x02:空闲 0x03:充电
|
||||||
@@ -34,4 +36,13 @@ public enum PileConnectorStatusEnum {
|
|||||||
this.value = value;
|
this.value = value;
|
||||||
this.label = label;
|
this.label = label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String getLabelByValue(String value) {
|
||||||
|
for (PileConnectorStatusEnum pileConnectorStatusEnum : PileConnectorStatusEnum.values()) {
|
||||||
|
if (StringUtils.equals(pileConnectorStatusEnum.getValue(), value)) {
|
||||||
|
return pileConnectorStatusEnum.getLabel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "未知";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -238,9 +238,9 @@ public class UploadRealTimeMonitorHandler extends AbstractHandler {
|
|||||||
|
|
||||||
// if (!StringUtils.equals(connectorStatus, "02")) {
|
// if (!StringUtils.equals(connectorStatus, "02")) {
|
||||||
if (!StringUtils.equals(connectorStatus, PileConnectorStatusEnum.FREE.getValue())) {
|
if (!StringUtils.equals(connectorStatus, PileConnectorStatusEnum.FREE.getValue())) {
|
||||||
log.info("0x13上传实时监测数据==交易流水号:{}, 桩编号:{}, 枪号:{}, 状态:{}, 枪是否归位(00-否;01-是;02-未知):{}, 是否插枪(00-否;01-是):{}, 输出电压:{}, 输出电流:{}, 枪线温度:{}, " +
|
log.info("0x13上传实时监测数据==交易流水号:{}, 桩编号:{}, 枪口号:{}, 枪口状态:{}, 枪口状态描述:{}, 枪是否归位(00-否;01-是;02-未知):{}, 是否插枪(00-否;01-是):{}, 输出电压:{}, 输出电流:{}, 枪线温度:{}, " +
|
||||||
"枪线编码:{}, SOC:{}, 电池组最高温度:{}, 累计充电时间:{}, 剩余时间:{}, 充电度数:{}, 记损充电度数:{}, 已充金额:{}, " +
|
"枪线编码:{}, SOC:{}, 电池组最高温度:{}, 累计充电时间:{}, 剩余时间:{}, 充电度数:{}, 记损充电度数:{}, 已充金额:{}, " +
|
||||||
"硬件故障:{}, 故障码转换结果:{}", transactionCode, pileSn, connectorCode, connectorStatus, homingFlag, putGunType, outputVoltage,
|
"硬件故障:{}, 故障码转换结果:{}", transactionCode, pileSn, connectorCode, connectorStatus, PileConnectorStatusEnum.getLabelByValue(connectorStatus), homingFlag, putGunType, outputVoltage,
|
||||||
outputCurrent, gunLineTemperature, gunLineCode, SOC, batteryMaxTemperature, sumChargingTime, timeRemaining,
|
outputCurrent, gunLineTemperature, gunLineCode, SOC, batteryMaxTemperature, sumChargingTime, timeRemaining,
|
||||||
chargingDegree, lossDegree, chargingAmount, hardwareFaultTemp, faultReason
|
chargingDegree, lossDegree, chargingAmount, hardwareFaultTemp, faultReason
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user