diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/ExpertRandomInviteTask.java b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/ExpertRandomInviteTask.java index 5c91c80..a60fa10 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/ExpertRandomInviteTask.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/task/ExpertRandomInviteTask.java @@ -305,11 +305,11 @@ public class ExpertRandomInviteTask { }); if (notIgnoreCnt.get() == 0 || notIgnoreCnt.get() == notSupportCnt.get()) { log.info("停止会议随机邀请:{} 未完成抽取规则数量 {} 无可抽取专家规则数量 {}", meetingId, notIgnoreCnt, notSupportCnt); + cancelByMeetingIdAndKillTask(meetingId); if (notIgnoreCnt.get() == notSupportCnt.get() && notIgnoreCnt.get() > 0) { // 当未完成抽取且无专家可抽取时 meetingNotifyHelper.sendInviteStopMsg(meeting.getCreateBy(), meetingId, meeting.getName()); } - cancelByMeetingIdAndKillTask(meetingId); } // 所有抽取规则抽取人数满足 自动召开会议 if (notIgnoreCnt.get() == 0 && notSupportCnt.get() == 0) { @@ -335,7 +335,7 @@ public class ExpertRandomInviteTask { if (future != null) { INVITE_TASK_MAP.remove(meetingId); if (!future.isCancelled()) { - future.cancel(true); + future.cancel(false); } } }