update 设置缓存过期时间

This commit is contained in:
2023-07-08 16:31:41 +08:00
parent 3aaabbbdfc
commit 4139a80298

View File

@@ -529,7 +529,7 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
// 只修改一个枪口的状态
num = pileConnectorInfoMapper.updateConnectorStatus(pileConnectorCode, status);
deleteRedisByPileSn(pileSn);
redisCache.setCacheObject(redisKey, status);
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_1h);
// TODO 推送联联平台 设备状态变化推送接口 ConnectorStatusInfo