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 a8980f5fc..190b7ffa1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs @@ -124,6 +124,21 @@ namespace Learun.Application.WebApi { ReqFormEntity parameter = this.GetReqData(); TalentsJoinInfoEntity entity = parameter.strEntity.ToObject(); + var model = talentsJoinInfoIBLL.GetIdCard(entity.IdentityCardNo); + if (string.IsNullOrEmpty(parameter.keyValue)) + { + if (model != null) + { + return Fail("身份证号已存在!"); + } + } + else + { + if (model != null && model.ID != parameter.keyValue) + { + return Fail("身份证号已存在!"); + } + } talentsJoinInfoIBLL.SaveEntity(parameter.keyValue, entity); return Success("保存成功!"); }