|
@@ -111,6 +111,21 @@ namespace Learun.Application.WebApi |
|
|
{ |
|
|
{ |
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
HiringRegistrationEntity entity = parameter.strEntity.ToObject<HiringRegistrationEntity>(); |
|
|
HiringRegistrationEntity entity = parameter.strEntity.ToObject<HiringRegistrationEntity>(); |
|
|
|
|
|
var model = hiringRegistrationIBLL.GetIDCard(entity.IdentityCardNo); |
|
|
|
|
|
if (string.IsNullOrEmpty(parameter.keyValue)) |
|
|
|
|
|
{ |
|
|
|
|
|
if (model != null) |
|
|
|
|
|
{ |
|
|
|
|
|
return Fail("身份证号已存在!"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
if (model != null && model.ID != parameter.keyValue) |
|
|
|
|
|
{ |
|
|
|
|
|
return Fail("身份证号已存在!"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
hiringRegistrationIBLL.SaveEntity(parameter.keyValue, entity); |
|
|
hiringRegistrationIBLL.SaveEntity(parameter.keyValue, entity); |
|
|
return Success("保存成功!"); |
|
|
return Success("保存成功!"); |
|
|
} |
|
|
} |
|
@@ -124,21 +139,21 @@ namespace Learun.Application.WebApi |
|
|
{ |
|
|
{ |
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); |
|
|
TalentsJoinInfoEntity entity = parameter.strEntity.ToObject<TalentsJoinInfoEntity>(); |
|
|
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); |
|
|
talentsJoinInfoIBLL.SaveEntity(parameter.keyValue, entity); |
|
|
return Success("保存成功!"); |
|
|
return Success("保存成功!"); |
|
|
} |
|
|
} |
|
|