This commit is contained in:
Lemon
2025-07-02 11:54:57 +08:00
parent 883ebe7022
commit ba40605af7
5 changed files with 20 additions and 20 deletions

View File

@@ -70,7 +70,7 @@ public abstract class AbstractYkcHandler implements InitializingBean {
// 保存桩号和channel的关系
PileChannelEntity.checkChannel(pileSn, ctx);
PileChannelEntity.checkChannelV2(pileSn, ctx);
// PileChannelEntity.checkChannelV2(pileSn, ctx);
}
/**

View File

@@ -307,7 +307,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
}
log.error("【{}】发生了错误, pileSn:【{}】此连接被关闭, 此时连通数量: {}", channelId, pileSn, CHANNEL_MAP.size());
// 删除连接
PileChannelEntity.deleteChannel(pileSn, ctx);
// PileChannelEntity.deleteChannel(pileSn, ctx);
ctx.channel().close();
}
} finally {

View File

@@ -88,7 +88,7 @@ public class YKCBusinessServiceImpl implements YKCBusinessService {
pileMsgRecordService.save(pileSn, pileSn, type, jsonMsg, "");
// 删除连接
PileChannelEntity.deleteChannel(pileSn, ctx);
// PileChannelEntity.deleteChannel(pileSn, ctx);
// 删除桩编号和channel的关系
// PileChannelEntity.removeByPileSn(pileSn);