|
|
@@ -168,16 +168,16 @@ namespace Learun.Application.WebApi |
|
|
|
WorkStaffEntity entity = model.strEntity.ToObject<WorkStaffEntity>(); |
|
|
|
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("身份证号已存在!"); |
|
|
|
} |
|
|
|