fix 增加可查询所有door记录
This commit is contained in:
@@ -206,12 +206,13 @@ public class AppointmentService : IAppointmentService
|
||||
}
|
||||
|
||||
|
||||
public async Task<List<AppointmentDetailResponse>> GetRecordListAsync(string factory, VisitorAppointmentDetailStatusEnumType status, DateTime start, DateTime end)
|
||||
public async Task<List<AppointmentDetailResponse>> GetRecordListAsync(string factory, VisitorAppointmentDetailStatusEnumType? status, DateTime start, DateTime end)
|
||||
{
|
||||
return await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
||||
.LeftJoin<GainfoEntity>((x, ga) => ga.IdNo == x.IdNo)
|
||||
.Where(x => SqlFunc.Subqueryable<VisitorAppointmentEntity>().Where(p => p.Factory == factory).Any())
|
||||
.Where(x => x.IsEnterDoorArea && x.DoorStatus == status)
|
||||
.Where(x => x.IsEnterDoorArea)
|
||||
.WhereIF(status.HasValue, x => x.DoorStatus == status)
|
||||
.Where(x => x.DoorStart >= start && x.DoorEnd <= end)
|
||||
.Select(x => new AppointmentDetailResponse
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user