赛事列表筛选
This commit is contained in:
parent
8876a7e086
commit
f95eab1a40
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user