From aa615b1ac1e7c171e82c4e06562fa0635def49dd Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 16 Oct 2024 10:06:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=A4=96=E5=8C=85?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoFaceService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index bbcff7e5..cc7b59e1 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -109,6 +109,10 @@ public class GainfoFaceService : IGainfoFaceService var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.External) .Where(x => x.IdNo == request.UserNo) .SingleAsync(); + + gainfo ??= await _gainfoStore.Queryable(GainfoStatusEnumType.Working) + .Where(x => x.IdNo == request.UserNo) + .SingleAsync(); gainfo.ThrowIfNull("人员信息不存在");