Преглед на файлове

api人才引进

娄底高职分支
ndbs преди 2 години
родител
ревизия
9e4492dc47
променени са 1 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. +15
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs

+ 15
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs Целия файл

@@ -124,6 +124,21 @@ namespace Learun.Application.WebApi
{
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>();
TalentsJoinInfoEntity entity = parameter.strEntity.ToObject<TalentsJoinInfoEntity>();
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("保存成功!");
}


Зареждане…
Отказ
Запис