diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileServer.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileServer.java index 46e453e0..3b741f12 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileServer.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileServer.java @@ -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 cachePileNoSet = REDIS.getCacheSet("svcSrvPile:".concat(getLocalIPAndPort())); - for (String pno : cachePileNoSet) { - String pkey = "pile:".concat(pno); - Map cachePile = REDIS.getCacheMap(pkey); - cachePile.put("status", DISCONNECTED); - REDIS.setCacheMap(pkey, cachePile); - } } @Autowired