From c300b5b4571d0293e6b20d74cb2340afd1167bc3 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 5 Mar 2025 12:31:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=BF=E5=AE=A2=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E7=99=BB=E9=99=86=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoFaceService.cs | 1 - .../Organization/Services/Implements/GainfoService.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index 6c863fc8..e0edfb2f 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -128,7 +128,6 @@ public class GainfoFaceService : IGainfoFaceService .SingleAsync(); gainfo.ThrowIfNull("人员信息不存在"); - (gainfo.Type == GainfoUserTypeEnumType.External).ThrowIfTrue("人员类型有误,禁止操作"); var face = await _faceDbContext.Queryable().Where(x => x.UserCode == gainfo.Code).SingleAsync(); var taskType = face == null ? DeviceTaskEnumType.Add : DeviceTaskEnumType.Update; diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index ab1bc079..32083932 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -249,7 +249,7 @@ public class GainfoService : IGainfoService { var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.Working).SingleAsync(x => x.IdNo == request.IdNo && x.Name == request.Name); gainfo.ThrowIfNull("验证失败!"); - + (gainfo.Type == GainfoUserTypeEnumType.External).ThrowIfTrue("人员类型有误,禁止操作"); var protector = _dataProtectionProvider.CreateProtector("gainfo:external:idno"); return new {