diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index ff1b7951..8681c948 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -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,