移除可能导致充电桩错误状态的代码

This commit is contained in:
ZZ 2021-08-17 15:55:56 +08:00
parent 703d2a3b04
commit d8dceed4d0

View File

@ -20,9 +20,7 @@ import javax.annotation.PostConstruct;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import static com.xhpc.pp.config.EarlierBeanConf.getLocalIPAndPort;
import static com.xhpc.pp.logic.RegisterLogic.DISCONNECTED;
@ -50,13 +48,6 @@ public class ChargingPileServer {
public void init() {
REDIS = redisService;
Set<String> cachePileNoSet = REDIS.getCacheSet("svcSrvPile:".concat(getLocalIPAndPort()));
for (String pno : cachePileNoSet) {
String pkey = "pile:".concat(pno);
Map<String, Object> cachePile = REDIS.getCacheMap(pkey);
cachePile.put("status", DISCONNECTED);
REDIS.setCacheMap(pkey, cachePile);
}
}
@Autowired