From bcd48ca35c4825c3eb165ef75a843d2e915ade66 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sat, 19 Oct 2024 14:17:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=A3=80=E6=B5=8B=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Appointment/Services/Implements/AppointmentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(",")}无效"); }