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

修改通知去重复

parent 9b4a5b3e
......@@ -111,9 +111,7 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
//判断基础是否设置关闭切换通知,有则推送
if (!ObjectUtils.isEmpty(basicSetEntity.getMeetEnd()) && basicSetEntity.getMeetEnd() == YesNoEnum.YES.getValue()) {
//结束通知 通过redis 去重复
long sub = DateUtil.between(pendRecordEntity.getMeetTimeStart(), pendRecordEntity.getMeetTimeEnd(), DateUnit.SECOND, true);
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_END_CACHE, pendRecordEntity.getId(), sub);
if (setnx) {
RoomDeviceQuery roomDeviceQuery = new RoomDeviceQuery();
roomDeviceQuery.setRoomId(pendRecordEntity.getRoomId());
RoomDeviceEntity roomDeviceEntity = roomDeviceService.selectOne(roomDeviceQuery);
......@@ -125,7 +123,14 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
Rest<String> rest = messageFeign.downMsg(uploadDeviceReq);
log.info("推送自动结束 postMeet :{}", JSON.toJSONString(Arrays.asList(roomDeviceEntity.getDeviceCode())));
}
/* long sub = DateUtil.between(pendRecordEntity.getMeetTimeStart(), pendRecordEntity.getMeetTimeEnd(), DateUnit.SECOND, true);
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_END_CACHE, pendRecordEntity.getId(), sub);
if (setnx) {
}else{
}*/
}
}
......
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