bugfix 修复0x01中不会修改桩状态为空闲的bug

This commit is contained in:
Lemon
2025-07-22 16:22:37 +08:00
parent 0e7cd0b33c
commit 1edab2a4aa

View File

@@ -555,7 +555,7 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
0x01 登陆认证
登陆成功,把充电桩和枪口的状态都更新为【在线】
*/
if (StringUtils.equals(frameType, String.valueOf(YKCFrameTypeCode.LOGIN_CODE.getCode()))) {
if (StringUtils.equals(frameType, BytesUtil.bcd2Str(YKCFrameTypeCode.LOGIN_CODE.getBytes()))) {
// 枪口状态设置为【空闲】
pileConnectorInfoService.updateConnectorStatusByPileSn(pileSn, PileConnectorDataBaseStatusEnum.FREE.getValue());
}