fix 仅查询door
This commit is contained in:
@@ -159,8 +159,7 @@ public class AppointmentService : IAppointmentService
|
|||||||
return await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
return await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
||||||
.LeftJoin<GainfoEntity>((x, ga) => ga.IdNo == idNo)
|
.LeftJoin<GainfoEntity>((x, ga) => ga.IdNo == idNo)
|
||||||
.Where((x, ga) => ga.IdNo == idNo)
|
.Where((x, ga) => ga.IdNo == idNo)
|
||||||
.Where(x => (x.IsEnterDoorArea && SqlFunc.DateIsSame(x.DoorStart, now) && x.DoorStatus == VisitorAppointmentDetailStatusEnumType.Wait) ||
|
.Where(x => (x.IsEnterDoorArea && SqlFunc.DateIsSame(x.DoorStart, now) && x.DoorStatus == VisitorAppointmentDetailStatusEnumType.Wait))
|
||||||
(x.IsEnterWorkplace && SqlFunc.DateIsSame(x.WorkplaceStart, now) && x.WorkplaceStatus == VisitorAppointmentDetailStatusEnumType.Wait))
|
|
||||||
.Where(x => SqlFunc.Subqueryable<VisitorAppointmentEntity>().Where(p => p.Factory == factory).Where(p => p.No == x.No).Any())
|
.Where(x => SqlFunc.Subqueryable<VisitorAppointmentEntity>().Where(p => p.Factory == factory).Where(p => p.No == x.No).Any())
|
||||||
.Select(x => new AppointmentDetailResponse
|
.Select(x => new AppointmentDetailResponse
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user