|
|
@ -281,4 +281,34 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 查询简历是否存在 |
|
|
|
|
|
|
|
public async Task<ServiceResult<long>> CheckIsExist(InsertGhrh_ResumeInput input) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
long id = 0; |
|
|
|
|
|
|
|
var resume = await QuerySingle(x => x.Mobile == input.Mobile); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resume == null) |
|
|
|
|
|
|
|
id = await base.Add(new InsertGhrh_ResumeInput() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Mobile = input.Mobile, |
|
|
|
|
|
|
|
StaffName = input.StaffName |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (resume.IdCardNo.IsNullOrEmpty()) |
|
|
|
|
|
|
|
ServiceResult<long>.OprateFailed("请输入身份证号码后六位!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resume = await QuerySingle(x => x.Mobile == input.Mobile && x.IdCardNo.Contains(input.IdCardNo)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resume.IsNullOrEmpty()) |
|
|
|
|
|
|
|
ServiceResult<long>.OprateFailed("请输入身份证号码后六位!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
id = resume.Id; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ServiceResult<long>.OprateSuccess("查询成功", id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
} |
|
|
|
} |