fix 访客预约申请查询

This commit is contained in:
2024-12-16 14:21:33 +08:00
parent ae2dca8874
commit 7d5a63625a

View File

@@ -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)