diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index 915fda5b..d6e1f64d 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -135,7 +135,7 @@ public class Ghrh_ResumeController : BaseController /// [HttpPost("CheckIsExist"), AllowAnonymous] - public async Task> CheckIsExist([FromBody] InsertGhrh_ResumeInput input) + public async Task> CheckIsExist([FromBody] InsertGhrh_ResumeInput input) { return await _service.CheckIsExist(input); @@ -153,4 +153,14 @@ public class Ghrh_ResumeController : BaseController + /// 查询简历是否存在 + /// + /// + [HttpPost("Query/{id}/{langId}"), AllowAnonymous] + public async Task> Query(long id, int langId) => await _service.Query(id, langId); + + #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index fc44de74..e48bfa78 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1217,6 +1217,12 @@ + + + 查询简历是否存在 + + + 教育背景(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs index 2db51265..e2a10ff3 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs @@ -20,8 +20,10 @@ namespace Tiobon.Core.IServices Task MarkTags(List ids, List tags); - Task> CheckIsExist(InsertGhrh_ResumeInput input); + Task> CheckIsExist(InsertGhrh_ResumeInput input); Task>> QueryCompanyInfo(string companySpecCode); + + Task> Query(long id, int langId); } } \ No newline at end of file diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 15d6b84a..e5d3b31c 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -338,7 +338,7 @@ public class Ghrh_ResumeServices : BaseServices> CheckIsExist(InsertGhrh_ResumeInput input) + public async Task> CheckIsExist(InsertGhrh_ResumeInput input) { dynamic obj = new ExpandoObject(); obj.ApplicationStatus = "Hold"; @@ -354,20 +354,18 @@ public class Ghrh_ResumeServices : BaseServices.OprateFailed("请输入身份证号码后六位!"); + if (resume.IdCardNo.IsNotEmptyOrNull() && input.IdCardNo.IsNullOrEmpty()) + return ServiceResult.OprateFailed("请输入身份证号码后六位!"); - resume = await QuerySingle(x => x.Mobile == input.Mobile && x.IdCardNo.Contains(input.IdCardNo)); - - if (resume.IsNullOrEmpty()) - ServiceResult.OprateFailed("请输入身份证号码后六位!"); + if (resume.IdCardNo.IsNotEmptyOrNull() && input.IdCardNo.IsNotEmptyOrNull()) + resume = await QuerySingle(x => x.Mobile == input.Mobile && x.IdCardNo.Contains(input.IdCardNo)); id = resume.Id; - obj.ApplicationStatus = resume.ApplicationStatus; + obj.ApplicationStatus = resume.ApplicationStatus ?? "Hold"; } obj.Id = id; - return ServiceResult.OprateSuccess("查询成功", id); + return ServiceResult.OprateSuccess("查询成功", obj); } #endregion @@ -401,4 +399,28 @@ public class Ghrh_ResumeServices : BaseServices> Query(long id, int langId) + { + dynamic obj = new ExpandoObject(); + dynamic Guide = new ExpandoObject(); + var entity = await QueryById(id); + + #region Guide + Guide.Title = "应聘信息登记表填写说明"; + Guide.CompanyName = "乔邦 Tiobon"; + Guide.GuideText = @"

亲爱的小伙伴:

+

        感谢你对公司的认可。

+

 

+

        填写公司岗位应聘表时,请确保信息准确无误。

+

 

+

请依次填写个人信息(如姓名、联系方式等)、教育青景、工作经验(从最近到最远列出,包括公司名称、职位和主要职责)等。 +强调与职位相关的经历和技能,保持内容简洁明了。

"; + obj.Guide = Guide; + #endregion + return ServiceResult.OprateSuccess("查询成功", obj); + + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index fc44de74..e48bfa78 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1217,6 +1217,12 @@
+ + + 查询简历是否存在 + + + 教育背景(Controller)