费率下发修改
This commit is contained in:
parent
38f949df23
commit
c095057923
@ -31,9 +31,11 @@ public class RateModelConfigReplyDataLogic implements ServiceLogic {
|
|||||||
String configResult = pileRateModelConfigReplyData.getConfigResult();
|
String configResult = pileRateModelConfigReplyData.getConfigResult();
|
||||||
if (HEX_01.equals(configResult)) {
|
if (HEX_01.equals(configResult)) {
|
||||||
// 确定设置成功的rateModelId 可能涉及协议修改
|
// 确定设置成功的rateModelId 可能涉及协议修改
|
||||||
Map<String, Object> cachePile = REDIS.getCacheMap("pile:".concat(pileRateModelConfigReplyData.getPileNo()));
|
final String pkey = "pile:".concat(pileRateModelConfigReplyData.getPileNo());
|
||||||
|
Map<String, Object> cachePile = REDIS.getCacheMap(pkey);
|
||||||
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(pkey, cachePile);
|
||||||
return new ServiceResult(OK);
|
return new ServiceResult(OK);
|
||||||
}
|
}
|
||||||
return new ServiceResult(FAIL);
|
return new ServiceResult(FAIL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user