mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update异常后删除连接
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.common.enums.ykc;
|
||||
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import io.netty.channel.Channel;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@@ -61,4 +62,11 @@ public class PileChannelEntity {
|
||||
manager.remove(pileSn);
|
||||
}
|
||||
|
||||
public static void removeByChannelId(String channelId){
|
||||
String pileSn = getPileSnByChannelId(channelId);
|
||||
if (StringUtils.isNotBlank(pileSn)) {
|
||||
manager.remove(pileSn);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user