From 537c7c5e853cc9fefa8551ea70603a3616f2fb6f Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 28 Feb 2025 17:30:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A4=84=E7=90=86=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BA=BA=E8=84=B8=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index e0edfb2f..6c863fc8 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -128,6 +128,7 @@ 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;