fix 访客预约申请查询
This commit is contained in:
@@ -54,7 +54,7 @@ public class AppointmentService : IAppointmentService
|
||||
x => x.Date >= request.SearchDateTimePeriod.Start && x.Date <= request.SearchDateTimePeriod.End)
|
||||
.WhereIF(request.Search.IsPresent(), x => x.Code == request.Search ||
|
||||
SqlFunc.Subqueryable<VisitorAppointmentDetailEntity>()
|
||||
.Where(p => p.No != x.No)
|
||||
.Where(p => p.No == x.No)
|
||||
.Where(p => p.IdNo == request.Search || p.Name == request.Search).Any()
|
||||
)
|
||||
.Where(x => x.Factory == factory)
|
||||
|
||||
Reference in New Issue
Block a user