From f95eab1a40d867a5a897b61075ff2b7366eecfd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Tue, 14 Jul 2026 23:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E5=88=97=E8=A1=A8=E7=AD=9B?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/EventService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/YD_Event.Application/Event/EventService.cs b/YD_Event.Application/Event/EventService.cs index fadef76..3acc6f4 100644 --- a/YD_Event.Application/Event/EventService.cs +++ b/YD_Event.Application/Event/EventService.cs @@ -88,6 +88,7 @@ public class EventService : BaseService, ITransient .WhereIF(input.EventType.HasValue, x => x.EventType == input.EventType) .WhereIF(input.ChargeMode.HasValue, x => x.ChargeMode == input.ChargeMode) .WhereIF(input.EventStatus.HasValue, x => x.EventStatus == input.EventStatus) + .WhereIF(!input.EventStatus.HasValue, x => x.EventStatus != EventStatus.NotStarted && x.EventStatus != EventStatus.Ended) .WhereIF(input.RegistrationStartTime.HasValue, x => x.RegistrationStartTime >= input.RegistrationStartTime) .WhereIF(input.RegistrationEndTime.HasValue, x => x.RegistrationEndTime <= input.RegistrationEndTime) .WhereIF(input.MatchStartTime.HasValue, x => x.MatchStartTime >= input.MatchStartTime)