Commit abd1aafc authored by 赵啸非's avatar 赵啸非

修改通知去重复

parent a90d3bb3
...@@ -112,7 +112,10 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService { ...@@ -112,7 +112,10 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
} }
//通知设备进行数据更新 //通知设备进行数据更新
long expire = between * 60 == 0 ? between * 60 : 60; long expire = between * 60;
if(expire==0){
expire=60;
}
log.info("会议redis 设置过期时间:{}", expire); log.info("会议redis 设置过期时间:{}", expire);
try { try {
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), expire); boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), expire);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment