更新对时设置在注册时修改状态
This commit is contained in:
parent
dc8d2b7d99
commit
76a49215d0
@ -103,9 +103,9 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler {
|
||||
String resultCode = result.getCode();
|
||||
String pilekey = "pile:".concat(pileNo);
|
||||
Map<String, Object> cachePile = REDIS.getCacheMap(pilekey);
|
||||
String tcfgkey = "pile:".concat(pileNo).concat(".tcfg");
|
||||
if (SERVICE_REGISTER.equals(serviceName) && OK.equals(resultCode)) {
|
||||
cachePile.put("tcfg", false);
|
||||
REDIS.setCacheMap(pilekey, cachePile);
|
||||
REDIS.setCacheObject(tcfgkey, false);
|
||||
regHandler(handler, pileNo, req);
|
||||
} else if (SERVICE_RMR.equals(serviceName) && OK.equals(resultCode)) {
|
||||
setCachePileRM(pilekey);
|
||||
@ -133,7 +133,6 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler {
|
||||
if (SERVICE_HB.equals(serviceName)) {
|
||||
if (OK.equals(resultCode)) {
|
||||
pileNo = ChargingPileServer.getPileNo(handler);
|
||||
String tcfgkey = "pile:".concat(pileNo).concat(".tcfg");
|
||||
Boolean tcfg = REDIS.getCacheObject(tcfgkey);
|
||||
if (tcfg == null || !tcfg) {
|
||||
String skey = pilekey.concat(".seqhex");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user