update异常后删除连接

This commit is contained in:
2023-11-06 14:22:58 +08:00
parent df8f916c88
commit 23e52ca90c
2 changed files with 15 additions and 8 deletions

View File

@@ -59,10 +59,16 @@ public class PileChannelEntity {
}
public static void removeByPileSn(String pileSn){
if (StringUtils.isBlank(pileSn)) {
return;
}
manager.remove(pileSn);
}
public static void removeByChannelId(String channelId){
if (StringUtils.isBlank(channelId)) {
return;
}
String pileSn = getPileSnByChannelId(channelId);
if (StringUtils.isNotBlank(pileSn)) {
manager.remove(pileSn);