manual config time n rate model altered
This commit is contained in:
parent
a6a7d92277
commit
ff1e8baad5
@ -91,7 +91,7 @@ public class PileController {
|
||||
public R nativeConfigTimeNRateModel(@PathVariable("pileNo") String pileNo) {
|
||||
|
||||
ClientHandler handler = getHandler(pileNo);
|
||||
R r = R.fail("校时校费下发失败,充电桩未注册.");
|
||||
R r = R.fail("校时校费下发失败,充电桩未注册,或场站费率未设置.");
|
||||
if (handler != null && handler.isOpen()) {
|
||||
if (!handler.isOpen()) {
|
||||
log.error("send message failed. [{}]({}) connection lost", handler.getName(), pileNo);
|
||||
@ -107,8 +107,6 @@ public class PileController {
|
||||
if (pns != null) for (String pn : pns) {
|
||||
if (pn.equals(pileNo)) {
|
||||
String pk = "pile:".concat(pileNo);
|
||||
Long rateModelIdPile = REDIS.getCacheMapValue(pk, "rateModelId");
|
||||
if (!rateModelIdStation.equals(rateModelIdPile)) {
|
||||
String gkPattern = ("gun:").concat(pileNo).concat("*");
|
||||
Collection<String> gks = REDIS.keys(gkPattern);
|
||||
boolean charging = false;
|
||||
@ -148,7 +146,6 @@ public class PileController {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user