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:
@@ -252,23 +252,23 @@ public class UploadRealTimeMonitorHandler extends AbstractYkcHandler {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插枪状态
|
// 插枪状态 2025年1月20日14点01分暂不用此逻辑
|
||||||
String plugRedisKey = CacheConstants.CHARGER_PLUGGED_IN_STATUS + pileConnectorCode;
|
// String plugRedisKey = CacheConstants.CHARGER_PLUGGED_IN_STATUS + pileConnectorCode;
|
||||||
if (StringUtils.equals("01", isChargerPluggedIn)) {
|
// if (StringUtils.equals("01", isChargerPluggedIn)) {
|
||||||
// 插枪状态
|
// // 插枪状态
|
||||||
if (redisCache.setnx(plugRedisKey, pileConnectorCode, CacheConstants.cache_expire_time_30d)) {
|
// if (redisCache.setnx(plugRedisKey, pileConnectorCode, CacheConstants.cache_expire_time_30d)) {
|
||||||
// log.info("时间:{}, 枪口号:{}, 首次插入充电枪", DateUtils.getDateTime(), pileConnectorCode);
|
// // log.info("时间:{}, 枪口号:{}, 首次插入充电枪", DateUtils.getDateTime(), pileConnectorCode);
|
||||||
// 设置成功说明 第一次插枪
|
// // 设置成功说明 第一次插枪
|
||||||
// pileBasicInfoService.firstPlugInCharger(pileConnectorCode);
|
// // pileBasicInfoService.firstPlugInCharger(pileConnectorCode);
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
// 未插枪状态
|
// // 未插枪状态
|
||||||
if (redisCache.hasKey(plugRedisKey) && redisCache.deleteObject(plugRedisKey)) {
|
// if (redisCache.hasKey(plugRedisKey) && redisCache.deleteObject(plugRedisKey)) {
|
||||||
// log.info("时间:{}, 枪口号:{}, 首次拔出充电枪", DateUtils.getDateTime(), pileConnectorCode);
|
// // log.info("时间:{}, 枪口号:{}, 首次拔出充电枪", DateUtils.getDateTime(), pileConnectorCode);
|
||||||
// redis有值,并且删除成功,说明首次拔枪
|
// // redis有值,并且删除成功,说明首次拔枪
|
||||||
// pileBasicInfoService.firstUnplugCharger(pileConnectorCode);
|
// // pileBasicInfoService.firstUnplugCharger(pileConnectorCode);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 公共方法修改状态
|
// 公共方法修改状态
|
||||||
pileBasicInfoService.updateStatus(BytesUtil.bcd2Str(ykcDataProtocol.getFrameType()), pileSn, connectorCode, connectorStatus, isChargerPluggedIn);
|
pileBasicInfoService.updateStatus(BytesUtil.bcd2Str(ykcDataProtocol.getFrameType()), pileSn, connectorCode, connectorStatus, isChargerPluggedIn);
|
||||||
|
|||||||
Reference in New Issue
Block a user