用户pc筛选状态

This commit is contained in:
马梓彭 2026-07-15 09:19:35 +08:00
parent f95eab1a40
commit f3cdf90355
2 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,6 @@ public class EventService : BaseService<EventInfo>, 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)

View File

@ -170,6 +170,7 @@ public class UserEventRegistrationService : IDynamicApiController, ITransient
.Where(x => x.Status == AvailabilityStatus.Enable)
.WhereIF(!string.IsNullOrWhiteSpace(input.Keyword), x => x.EventName.Contains(input.Keyword))
.WhereIF(input.Status.HasValue && input.Status != 0, x => x.EventStatus == input.Status)
.WhereIF(!input.Status.HasValue || input.Status == 0, x => x.EventStatus != EventStatus.NotStarted && x.EventStatus != EventStatus.Ended)
.WhereIF(input.Type.HasValue, x => x.EventType == input.Type)
.WhereIF(input.StartTime.HasValue, x => x.MatchStartTime >= input.StartTime)
.WhereIF(input.EndTime.HasValue, x => x.MatchEndTime <= input.EndTime)