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("身份证号已存在!"); }