From df24e24e7542a73a097861f7095eb587c60f139a Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 18 Apr 2024 15:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoFaceService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index 5080477d..c00b1641 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -55,7 +55,9 @@ public class GainfoFaceService : IGainfoFaceService throw new UserFriendlyException("凭证有误,无法获取人脸数"); } - var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.External).Where(x => x.No == request.UserNo).FirstAsync(); + var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.External) + .Where(x => x.IdNo == request.UserNo) + .FirstAsync(); gainfo.ThrowIfNull("人员信息不存在"); var faceContext = _dbContext.ChangeDb("face");