费率下发修改

This commit is contained in:
ZZ 2021-09-09 15:19:51 +08:00
parent 38f949df23
commit c095057923

View File

@ -31,9 +31,11 @@ public class RateModelConfigReplyDataLogic implements ServiceLogic {
String configResult = pileRateModelConfigReplyData.getConfigResult();
if (HEX_01.equals(configResult)) {
// 确定设置成功的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()));
cachePile.put("rateModelId", cacheStation.getRateModelId());
REDIS.setCacheMap(pkey, cachePile);
return new ServiceResult(OK);
}
return new ServiceResult(FAIL);