Pārlūkot izejas kodu

续抽增加会议时间验证

master
WendyYang pirms 1 gada
vecāks
revīzija
15997a42f1
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java
  2. +0
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java Parādīt failu

@@ -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("续抽失败,请刷新后重试");
}


+ 0
- 3
pmapi/src/main/java/com/ningdatech/pmapi/meeting/task/ExpertInviteTask.java Parādīt failu

@@ -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);
}


Notiek ielāde…
Atcelt
Saglabāt