From 2fdb7b477f1b8f414ef75873d3b59ef22d8d1e2f Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 23 Jan 2026 11:34:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4=E5=A4=96=E5=8C=85?= =?UTF-8?q?=E7=9A=84=E8=AE=BF=E5=AE=A2=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/AppointmentService.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index 14e5790b..8635dbba 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -67,14 +67,14 @@ public class AppointmentService : IAppointmentService errors.ThrowIfExists($"内部人员无法发起门岗预约({errors.Join(",")})"); - var idNos = request.Items.Select(x => x.IdNo).Distinct().ToList(); - var outsources = await _dbContext.Queryable() - .Where(x => idNos.Contains(x.IdNo) || idNos.Contains(x.Code)) - .Where(x => x.Type == GainfoUserTypeEnumType.Outsource) - .Select(x => x.IdNo + x.Name) - .ToListAsync(); + //var idNos = request.Items.Select(x => x.IdNo).Distinct().ToList(); + //var outsources = await _dbContext.Queryable() + // .Where(x => idNos.Contains(x.IdNo) || idNos.Contains(x.Code)) + // .Where(x => x.Type == GainfoUserTypeEnumType.Outsource) + // .Select(x => x.IdNo + x.Name) + // .ToListAsync(); - outsources.ThrowIfExists($"存在外包人员申请,请检查一下人员:{outsources.Join(",")}"); + //outsources.ThrowIfExists($"存在外包人员申请,请检查一下人员:{outsources.Join(",")}"); foreach (var item in request.Items) { @@ -126,10 +126,10 @@ public class AppointmentService : IAppointmentService await _dbContext.UpdateAsync(gainfo); } - else if (gainfo.Type == GainfoUserTypeEnumType.Outsource) - { - throw new UserFriendlyException($"访客类型有误!,请检查{gainfo.Name},{gainfo.IdNo}"); - } + //else if (gainfo.Type == GainfoUserTypeEnumType.Outsource) + //{ + // throw new UserFriendlyException($"访客类型有误!,请检查{gainfo.Name},{gainfo.IdNo}"); + //} } var detail = new VisitorAppointmentDetailEntity