diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileEventHandler.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileEventHandler.java index f13c33f9..4a8c994b 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileEventHandler.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileEventHandler.java @@ -7,11 +7,6 @@ import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Component; -import java.util.Map; - -import static com.xhpc.common.data.redis.StaticBeanUtil.REDIS; -import static com.xhpc.pp.logic.RegisterLogic.DISCONNECTED; - @Lazy(false) @Component public class ChargingPileEventHandler implements ClientEventHandler { @@ -43,11 +38,11 @@ public class ChargingPileEventHandler implements ClientEventHandler { public void closingConnection(ClientHandler handler) { String pileNo = ChargingPileServer.getPileNo(handler); - ChargingPileServer.removeHandler(pileNo); - String pkey = "pile:".concat(pileNo); - Map cachePile = REDIS.getCacheMap(pkey); - cachePile.put("status", DISCONNECTED); - REDIS.setCacheMap(pkey, cachePile); +// ChargingPileServer.removeHandler(pileNo); +// String pkey = "pile:".concat(pileNo); +// Map cachePile = REDIS.getCacheMap(pkey); +// cachePile.put("status", DISCONNECTED); +// REDIS.setCacheMap(pkey, cachePile); handler.closeConnection(); log.info("-> ({}) - [{}] <- {}", pileNo, handler.getName(), handler.getSocket().getRemoteSocketAddress().toString()); }