移除可能导致充电桩错误状态的代码
This commit is contained in:
parent
703d2a3b04
commit
d8dceed4d0
@ -20,9 +20,7 @@ import javax.annotation.PostConstruct;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import static com.xhpc.pp.config.EarlierBeanConf.getLocalIPAndPort;
|
|
||||||
import static com.xhpc.pp.logic.RegisterLogic.DISCONNECTED;
|
import static com.xhpc.pp.logic.RegisterLogic.DISCONNECTED;
|
||||||
|
|
||||||
|
|
||||||
@ -50,13 +48,6 @@ public class ChargingPileServer {
|
|||||||
public void init() {
|
public void init() {
|
||||||
|
|
||||||
REDIS = redisService;
|
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
|
@Autowired
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user