fix 根据编码判断区域
This commit is contained in:
@@ -88,7 +88,7 @@ public class AppointmentService : IAppointmentService
|
||||
Phone = item.Phone,
|
||||
Remark = item.Remark,
|
||||
DoorStatus = areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
|
||||
.Select(x => x.Name)
|
||||
.Select(x => x.CustomCode)
|
||||
.Contains(item.ApplyDoorArea)
|
||||
? VisitorAppointmentDetailStatusEnumType.Wait
|
||||
: VisitorAppointmentDetailStatusEnumType.Obsolete,
|
||||
@@ -99,7 +99,7 @@ public class AppointmentService : IAppointmentService
|
||||
IsEnterWorkplace = item.IsEnterWorkplace,
|
||||
WorkplaceStatus = item.IsEnterWorkplace &&
|
||||
item.ApplyWorkplaceAreas.All(p => areas.Where(x => x.Type == AppointmentAreaEnumType.Workplace)
|
||||
.Select(x => x.Name)
|
||||
.Select(x => x.CustomCode)
|
||||
.Contains(p))
|
||||
? VisitorAppointmentDetailStatusEnumType.Wait
|
||||
: VisitorAppointmentDetailStatusEnumType.Obsolete,
|
||||
|
||||
Reference in New Issue
Block a user