注册请求费率
This commit is contained in:
parent
e8798ada8b
commit
5c9c71a4a3
@ -102,7 +102,8 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler {
|
|||||||
cachePile.put("tcfg", false);
|
cachePile.put("tcfg", false);
|
||||||
REDIS.setCacheMap(pilekey, cachePile);
|
REDIS.setCacheMap(pilekey, cachePile);
|
||||||
regHandler(handler, pileNo, req);
|
regHandler(handler, pileNo, req);
|
||||||
} else if (SERVICE_RMCR.equals(serviceName) && OK.equals(resultCode)) {
|
}
|
||||||
|
if (SERVICE_RMCR.equals(serviceName) && OK.equals(resultCode)) {
|
||||||
setCachePileRM(pilekey);
|
setCachePileRM(pilekey);
|
||||||
}
|
}
|
||||||
if (result.getBinary() != null) {
|
if (result.getBinary() != null) {
|
||||||
@ -164,6 +165,7 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler {
|
|||||||
ChargingStationDto cacheStation = REDIS.getCacheObject("station:".concat(cachePile.get("stationId").toString()));
|
ChargingStationDto cacheStation = REDIS.getCacheObject("station:".concat(cachePile.get("stationId").toString()));
|
||||||
cachePile.put("rateModelId", cacheStation.getRateModelId());
|
cachePile.put("rateModelId", cacheStation.getRateModelId());
|
||||||
REDIS.setCacheMap(pilekey, cachePile);
|
REDIS.setCacheMap(pilekey, cachePile);
|
||||||
|
log.info("rate model responds success √");
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<byte[]> parseDataList(byte[] data) {
|
private List<byte[]> parseDataList(byte[] data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user