From 2136ec87d3de1abd6c72bb943888d20d0fda8793 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Thu, 27 Apr 2023 09:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E6=8E=89=E4=BC=9A=E8=AE=AE?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=AD=A3=E5=B8=B8=E7=9A=84=E8=AF=B7=E5=81=87?= =?UTF-8?q?=E4=B8=93=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/meeting/helper/ExpertInviteHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/ExpertInviteHelper.java b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/ExpertInviteHelper.java index 1c4e02f..b899612 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/ExpertInviteHelper.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/ExpertInviteHelper.java @@ -13,6 +13,7 @@ import com.ningdatech.pmapi.meeting.entity.dto.AbstractInviteRule; import com.ningdatech.pmapi.meeting.entity.dto.AppointInviteRuleDTO; import com.ningdatech.pmapi.meeting.entity.dto.AvoidRuleDTO; import com.ningdatech.pmapi.meeting.entity.enumeration.ExpertAttendStatusEnum; +import com.ningdatech.pmapi.meeting.entity.enumeration.MeetingStatusEnum; import com.ningdatech.pmapi.meeting.service.IMeetingExpertService; import com.ningdatech.pmapi.meeting.service.IMeetingService; import lombok.AllArgsConstructor; @@ -50,6 +51,7 @@ public class ExpertInviteHelper { public List listInvitedExpertByTime(LocalDateTime start, LocalDateTime end) { LambdaQueryWrapper meetingQuery = Wrappers.lambdaQuery(Meeting.class) .select(Meeting::getId) + .eq(Meeting::getStatus, MeetingStatusEnum.NORMAL.getCode()) .and(wrapper -> wrapper.between(Meeting::getStartTime, start, end) .or(wrapper1 -> wrapper1.between(Meeting::getEndTime, start, end))); List meetings = meetingService.list(meetingQuery);