充电桩正在充电中的交易流水号保存到redis

This commit is contained in:
2024-02-21 16:12:55 +08:00
parent b8d9226c42
commit fd83d930a5

View File

@@ -570,7 +570,7 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
// 把充电桩正在充电中的状态存到redis
String pileIsChargingKey = CacheConstants.PILE_IS_CHARGING + realTimeMonitorData.getPileSn();
redisCache.setCacheObject(pileIsChargingKey, Constants.one, 12);
redisCache.setCacheObject(pileIsChargingKey, realTimeMonitorData.getTransactionCode(), 12);
}
@Override