From 4f535f20d086489c09e08e4bb80b682a95d89c34 Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 18 Oct 2022 12:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=98=AF=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs index 57d09d5c6..655232d2b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs @@ -168,16 +168,16 @@ namespace Learun.Application.WebApi WorkStaffEntity entity = model.strEntity.ToObject(); var models = workStaffIBLL.GetIDCard(entity.IdentityCardNo); - if (string.IsNullOrEmpty(models.ID)) + if (string.IsNullOrEmpty(model.keyValue)) { - if (model != null) + if (models != null) { return Fail("身份证号已存在!"); } } else { - if (model != null && models.ID != entity.ID) + if (models != null && models.ID != model.keyValue) { return Fail("身份证号已存在!"); }