From 6722404519d87f63cb4d9bd375495a5fc0ebbddc Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 13 Jan 2026 16:09:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=B1=BB=E5=9E=8B=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Appointment/Services/Implements/AppointmentService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index a0d0d8c5..72364110 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -107,7 +107,6 @@ public class AppointmentService : IAppointmentService else { (invalids.Contains(gainfo.Type) && item.IsEnterDoorArea).ThrowIfTrue("内部人员无法发起门岗预约"); - if (gainfo.Type == GainfoUserTypeEnumType.External) { gainfo.Source = request.Source; @@ -116,6 +115,10 @@ public class AppointmentService : IAppointmentService await _dbContext.UpdateAsync(gainfo); } + else + { + throw new UserFriendlyException("访客类型有误!"); + } } var detail = new VisitorAppointmentDetailEntity