From 196f3413c5e4e861eadad99ad6f7a9216257135b Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 26 May 2025 14:33:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20idno=E5=8C=B9=E9=85=8D,=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=BD=92=E6=A1=A3=E5=90=8E=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= 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.Basic/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs index 2dc74c46..5f26d944 100644 --- a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs @@ -399,6 +399,9 @@ public class AppointmentService : IAppointmentService private async Task GenerateDeviceTasksAsync(VisitorAppointmentDetailEntity detail, bool withWorkplace, DeviceTaskEnumType deviceTaskType, string source) { + var gainfo = await _dbContext.Queryable().Where(x => x.IdNo == detail.IdNo || x.Code == detail.IdNo).SingleAsync(); + gainfo.ThrowIfNull("人员信息不存在"); + var areaCodes = GetValidAreaCodes(detail, withWorkplace).ToList(); if (areaCodes.IsEmpty()) return; @@ -418,7 +421,7 @@ public class AppointmentService : IAppointmentService DeviceType = DeviceTypeEnumType.Door, DeviceUniqueNo = x.UniqueNo, Status = DeviceTaskStatusEnumType.Wait, - UserNo = detail.UserNo, + UserNo = gainfo.No, Type = deviceTaskType, Priority = 100, TenantId = x.TenantId,