소스 검색

续抽增加会议时间验证

master
WendyYang 1 년 전
부모
커밋
15997a42f1
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

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


불러오는 중...
취소
저장