根据手机号码、姓名、身份证号码校验简历是否存在

master
xiaochanghai 8 months ago
parent cf98cdaf19
commit 51671221a1
  1. 13
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs
  2. 6
      Tiobon.Core.Api/Tiobon.Core.xml
  3. 2
      Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs
  4. 30
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  5. 6
      Tiobon.Core/Tiobon.Core.xml

@ -128,4 +128,17 @@ public class Ghrh_ResumeController : BaseController<IGhrh_ResumeServices, Ghrh_R
} }
#endregion #endregion
#region 查询简历是否存在
/// <summary>
/// 查询简历是否存在
/// </summary>
/// <returns></returns>
[HttpPost("CheckIsExist")]
public async Task<ServiceResult<long>> CheckIsExist([FromBody] InsertGhrh_ResumeInput input)
{
return await _service.CheckIsExist(input);
}
#endregion
} }

@ -1205,6 +1205,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeController.CheckIsExist(Tiobon.Core.Model.Models.InsertGhrh_ResumeInput)">
<summary>
查询简历是否存在
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController"> <member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController">
<summary> <summary>
教育背景(Controller) 教育背景(Controller)

@ -19,5 +19,7 @@ namespace Tiobon.Core.IServices
Task<bool> UpdateStatus(List<long> ids, string status); Task<bool> UpdateStatus(List<long> ids, string status);
Task<bool> MarkTags(List<long> ids, List<long> tags); Task<bool> MarkTags(List<long> ids, List<long> tags);
Task<ServiceResult<long>> CheckIsExist(InsertGhrh_ResumeInput input);
} }
} }

@ -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
} }

@ -1205,6 +1205,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeController.CheckIsExist(Tiobon.Core.Model.Models.InsertGhrh_ResumeInput)">
<summary>
查询简历是否存在
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController"> <member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController">
<summary> <summary>
教育背景(Controller) 教育背景(Controller)

Loading…
Cancel
Save