Browse Source

修复会议详情专家层级查询报错

tags/24080901
WendyYang 1 year ago
parent
commit
6584403ca2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java

+ 3
- 3
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java View File

@@ -199,7 +199,7 @@ public class MeetingManage {
if (!MeetingStatusEnum.NORMAL.eq(meeting.getStatus())) { if (!MeetingStatusEnum.NORMAL.eq(meeting.getStatus())) {
throw BizException.wrap("转换失败,请刷新后重试"); throw BizException.wrap("转换失败,请刷新后重试");
} }
expertRandomInviteTask.cancelByMeetingId(meetingId);
expertRandomInviteTask.cancelByMeetingIdAndKillTask(meetingId);
LambdaUpdateWrapper<Meeting> meetingUpdate = Wrappers.lambdaUpdate(Meeting.class) LambdaUpdateWrapper<Meeting> meetingUpdate = Wrappers.lambdaUpdate(Meeting.class)
.set(Meeting::getInviteType, APPOINT.getCode()) .set(Meeting::getInviteType, APPOINT.getCode())
.eq(Meeting::getId, meetingId); .eq(Meeting::getId, meetingId);
@@ -654,7 +654,7 @@ public class MeetingManage {
} }


public void stopRandomInvite(Long meetingId) { public void stopRandomInvite(Long meetingId) {
expertRandomInviteTask.cancelByMeetingId(meetingId);
expertRandomInviteTask.cancelByMeetingIdAndKillTask(meetingId);
} }


@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@@ -676,7 +676,7 @@ public class MeetingManage {
.set(Meeting::getStatus, MeetingStatusEnum.CANCELED.getCode()) .set(Meeting::getStatus, MeetingStatusEnum.CANCELED.getCode())
.eq(Meeting::getId, meetingId); .eq(Meeting::getId, meetingId);
meetingService.update(meetingUpdate); meetingService.update(meetingUpdate);
expertRandomInviteTask.cancelByMeetingId(meetingId);
expertRandomInviteTask.cancelByMeetingIdAndKillTask(meetingId);
// 发送通知给专家 // 发送通知给专家
List<MeetingExpert> experts = meetingExpertService.listAgreedExperts(meetingId); List<MeetingExpert> experts = meetingExpertService.listAgreedExperts(meetingId);
if (!experts.isEmpty()) { if (!experts.isEmpty()) {


Loading…
Cancel
Save