From 15997a42f1bb308a7224c3c395eecd451ccb5cc3 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Wed, 12 Apr 2023 19:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=AD=E6=8A=BD=E5=A2=9E=E5=8A=A0=E4=BC=9A?= =?UTF-8?q?=E8=AE=AE=E6=97=B6=E9=97=B4=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java | 3 +++ .../main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java index 9b0fff6..45cfe5b 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java @@ -170,6 +170,9 @@ public class MeetingManage { if (!meeting.getInviteStatus()) { throw BizException.wrap("该会议正在抽取专家,暂无法续抽"); } + if (meeting.getStartTime().isBefore(LocalDateTime.now())) { + throw BizException.wrap("会议已开始,不允许续抽"); + } if (!MeetingStatusEnum.NORMAL.eq(meeting.getStatus())) { throw BizException.wrap("续抽失败,请刷新后重试"); } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java index a1116e5..c008062 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java @@ -263,9 +263,6 @@ public class ExpertInviteTask { } }); if (notIgnoreCnt.get() == 0 || notIgnoreCnt.get() == notSupportCnt.get()) { - if (notSupportCnt.get() > 0) { - // TODO 发送邀请停止短信 - } log.info("停止会议随机邀请:{} 未完成抽取规则数量 {} 无可抽取专家规则数量 {}", meetingId, notIgnoreCnt, notSupportCnt); currProxy().cancelByMeetingId(meetingId); }