mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
uploadFirmware 上传固件接口
This commit is contained in:
@@ -9,6 +9,7 @@ public enum PileConnectorStatusEnum {
|
||||
FAULT("01", "故障"),
|
||||
FREE("02", "空闲"),
|
||||
OCCUPIED_CHARGING("03", "充电"),
|
||||
RESERVE("04", "预约中"),
|
||||
;
|
||||
private String value;
|
||||
private String label;
|
||||
|
||||
@@ -92,7 +92,7 @@ public class UploadRealTimeMonitorHandler extends AbstractHandler {
|
||||
String connectorCode = BytesUtil.bcd2Str(pileConnectorCodeByteArr);
|
||||
realTimeMonitorData.setConnectorCode(connectorCode);
|
||||
|
||||
// 枪口状态 0x00:离线 0x01:故障 0x02:空闲 0x03:充电
|
||||
// 枪口状态 0x00:离线 0x01:故障 0x02:空闲 0x03:充电 0x04 预约中
|
||||
startIndex += length;
|
||||
length = 1;
|
||||
byte[] connectorStatusByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
||||
@@ -250,7 +250,6 @@ public class UploadRealTimeMonitorHandler extends AbstractHandler {
|
||||
pileBasicInfoService.updateStatus(BytesUtil.bcd2Str(ykcDataProtocol.getFrameType()), pileSn, connectorCode, connectorStatus, putGunType);
|
||||
|
||||
// 01表示故障
|
||||
// if (StringUtils.equals(connectorStatus, "01")) {
|
||||
if (StringUtils.equals(connectorStatus, PileConnectorStatusEnum.FAULT.getValue())) {
|
||||
// 故障原因存入缓存
|
||||
String redisKey = CacheConstants.PILE_HARDWARE_FAULT + pileSn + connectorCode;
|
||||
@@ -258,7 +257,6 @@ public class UploadRealTimeMonitorHandler extends AbstractHandler {
|
||||
}
|
||||
|
||||
// 03表示充电中
|
||||
// if (StringUtils.equals(connectorStatus, "03")) {
|
||||
if (StringUtils.equals(connectorStatus, PileConnectorStatusEnum.OCCUPIED_CHARGING.getValue())) {
|
||||
// 默认保存到redis
|
||||
boolean saveRedisFlag = true;
|
||||
|
||||
Reference in New Issue
Block a user