From d8dceed4d0de95a367814d721808ac16c0fc49f4 Mon Sep 17 00:00:00 2001 From: ZZ Date: Tue, 17 Aug 2021 15:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=8F=AF=E8=83=BD=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=85=85=E7=94=B5=E6=A1=A9=E9=94=99=E8=AF=AF=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/xhpc/pp/server/ChargingPileServer.java | 9 --------- 1 file changed, 9 deletions(-) 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