Bläddra i källkod

隐藏

娄底高职分支
ndbs 2 år sedan
förälder
incheckning
f1467d5afb
1 ändrade filer med 16 tillägg och 16 borttagningar
  1. +16
    -16
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs

+ 16
- 16
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RecruiterPeopleApi.cs Visa fil

@@ -124,21 +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("身份证号已存在!");
}
}
//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("保存成功!");
}
@@ -150,7 +150,7 @@ namespace Learun.Application.WebApi
public Response SaveStaffForm(dynamic _)
{
var model = this.GetReqData<ReqFormEntity>();
WorkStaffEntity entity = model.strEntity.ToObject<WorkStaffEntity>();
WorkStaffEntity entity = model.strEntity.ToObject<WorkStaffEntity>();
workStaffIBLL.SaveEntity(model.keyValue, entity, entity.WorkStaffSonEntities);
return Success("保存成功!");
}


Laddar…
Avbryt
Spara