diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index abb8cddd..8bfe1b34 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -58,7 +58,7 @@ public class AppointmentService : IAppointmentService .Contains(p)) == false) { var workplaceAreas = areas.Where(x => x.Type == AppointmentAreaEnumType.Workplace).Select(x => x.CustomCode); - var notExistsAreas = workplaceAreas.Where(x => !item.ApplyWorkplaceAreas.Contains(x)); + var notExistsAreas = item.ApplyWorkplaceAreas.Where(x => !workplaceAreas.Contains(x)); throw new UserFriendlyException($"车间区域{notExistsAreas.Join(",")}无效"); }