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

修改通知去重复

parent 18d7aca1
...@@ -115,7 +115,7 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService { ...@@ -115,7 +115,7 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
} }
//通知设备进行数据更新 //通知设备进行数据更新
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), between * 60); boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_START_CACHE, recordEntity.getId(), 60);
if (setnx) { if (setnx) {
UploadDeviceReq uploadDeviceReq = new UploadDeviceReq(); UploadDeviceReq uploadDeviceReq = new UploadDeviceReq();
uploadDeviceReq.setDeviceCodeList(Arrays.asList(roomDeviceEntity.getDeviceCode())); uploadDeviceReq.setDeviceCodeList(Arrays.asList(roomDeviceEntity.getDeviceCode()));
......
...@@ -211,10 +211,11 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec ...@@ -211,10 +211,11 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
UploadDeviceReq uploadDeviceReq = new UploadDeviceReq(); UploadDeviceReq uploadDeviceReq = new UploadDeviceReq();
RoomEntity roomEntity = roomService.get(entity.getRoomId(), context); RoomEntity roomEntity = roomService.get(entity.getRoomId(), context);
if (!ObjectUtils.isEmpty(roomEntity)) { if (!ObjectUtils.isEmpty(roomEntity)) {
uploadDeviceReq.setDeviceCodeList(roomDeviceService.find(new RoomDeviceQuery().roomId(roomEntity.getId())).stream().map(i -> i.getDeviceCode()).collect(Collectors.toList())); List<String> deviceList = roomDeviceService.find(new RoomDeviceQuery().roomId(roomEntity.getId())).stream().map(i -> i.getDeviceCode()).collect(Collectors.toList());
uploadDeviceReq.setDeviceCodeList(deviceList);
uploadDeviceReq.setAction("refreshMetting"); uploadDeviceReq.setAction("refreshMetting");
Rest<String> rest = messageFeign.downMsg(uploadDeviceReq); Rest<String> rest = messageFeign.downMsg(uploadDeviceReq);
log.info("删除会议记录后发送消息:{}", JSON.toJSONString(rest)); log.info("删除会议记录后发送消息 deviceCode:{}", JSON.toJSONString(deviceList));
} }
}); });
......
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