From 0e91f09605b4369dd8b0f4517d82f089272d2843 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 21 Jan 2026 14:58:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20trim=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Appointment/Services/Implements/AppointmentService.cs | 3 ++- .../Appointment/Services/Implements/AppointmentService.cs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs index e6ddaf09..b0eecf68 100644 --- a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs @@ -262,7 +262,8 @@ public class AppointmentService : IAppointmentService .WhereIF(!status.HasValue, x => x.DoorStart >= start && x.DoorEnd <= end) .WhereIF(search.IsPresent(), x => x.Name.Contains(search) || x.No == search || x.IdNo == search) .Select(x => new AppointmentDetailResponse - { + { + Id = x.Id, No = x.No, Mst = SqlFunc.Subqueryable() .LeftJoin((p, ga) => p.Code == ga.Code) diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index be385e11..14e5790b 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -78,6 +78,8 @@ public class AppointmentService : IAppointmentService foreach (var item in request.Items) { + item.IdNo = item.IdNo.Trim(); + if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door) .Select(x => x.CustomCode) .Contains(item.ApplyDoorArea) == false)