赛事列表筛选

This commit is contained in:
马梓彭 2026-07-14 23:05:23 +08:00
parent 8876a7e086
commit f95eab1a40

View File

@ -88,6 +88,7 @@ public class EventService : BaseService<EventInfo>, ITransient
.WhereIF(input.EventType.HasValue, x => x.EventType == input.EventType) .WhereIF(input.EventType.HasValue, x => x.EventType == input.EventType)
.WhereIF(input.ChargeMode.HasValue, x => x.ChargeMode == input.ChargeMode) .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 == 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.RegistrationStartTime.HasValue, x => x.RegistrationStartTime >= input.RegistrationStartTime)
.WhereIF(input.RegistrationEndTime.HasValue, x => x.RegistrationEndTime <= input.RegistrationEndTime) .WhereIF(input.RegistrationEndTime.HasValue, x => x.RegistrationEndTime <= input.RegistrationEndTime)
.WhereIF(input.MatchStartTime.HasValue, x => x.MatchStartTime >= input.MatchStartTime) .WhereIF(input.MatchStartTime.HasValue, x => x.MatchStartTime >= input.MatchStartTime)