|
|
|
|
@ -35,14 +35,15 @@ public class MettingRemindHandler implements RedissonDelayQueuHandlle<String>{ |
|
|
|
|
wrapper.eq(TrainPerson::getTrainId, id); |
|
|
|
|
List<TrainPerson> list = trainPersonService.list(wrapper); |
|
|
|
|
Train train = trainService.getById(id); |
|
|
|
|
// if (list.size() > 0) {
|
|
|
|
|
// list.forEach(person -> {
|
|
|
|
|
// messageClient.event(SysTypeEnum.INFORM.getValue(), "会议提醒",
|
|
|
|
|
// "您有新的会议将在" + train.getDuration() + "分钟后开始,请准时参加!", 1, 5, person.getPersonName(), "/train/project");
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// messageClient.event(SysTypeEnum.INFORM.getValue(), "会议提醒",
|
|
|
|
|
// "您有新的会议将在" + train.getDuration() + "分钟后开始,请准时参加!", 1, 5, train.getTeacherName(), "/train/project");
|
|
|
|
|
//分别为讲师和培训者增加延迟消息提醒
|
|
|
|
|
if (list.size() > 0) { |
|
|
|
|
list.forEach(person -> { |
|
|
|
|
messageClient.event(SysTypeEnum.INFORM.getValue(), "会议提醒", |
|
|
|
|
"您有新的会议将在" + train.getDuration() + "分钟后开始,请准时参加!", 1, 5, person.getPersonName(), "/train/project"); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
messageClient.event(SysTypeEnum.INFORM.getValue(), "会议提醒", |
|
|
|
|
"您有新的会议将在" + train.getDuration() + "分钟后开始,请准时参加!", 1, 5, train.getTeacherName(), "/train/project"); |
|
|
|
|
log.info("有会议即将开始,会议id:{}", id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|