Commit 4d958c83 authored by 赵啸非's avatar 赵啸非

修改通知去重复

parent c9586076
......@@ -115,7 +115,8 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
}
//通知设备进行数据更新
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), 60);
long expire = between * 60 == 0 ? between * 60 : 60;
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), expire);
if (setnx) {
UploadDeviceReq uploadDeviceReq = new UploadDeviceReq();
uploadDeviceReq.setDeviceCodeList(Arrays.asList(roomDeviceEntity.getDeviceCode()));
......
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