From 51671221a16fa4ebc32fa598b49eaedc20103d99 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Mon, 28 Oct 2024 11:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E7=A0=81=E3=80=81=E5=A7=93=E5=90=8D=E3=80=81=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E5=8F=B7=E7=A0=81=E6=A0=A1=E9=AA=8C=E7=AE=80=E5=8E=86?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Ghrh/Ghrh_ResumeController.cs | 13 ++++++++ Tiobon.Core.Api/Tiobon.Core.xml | 6 ++++ .../Ghrh/IGhrh_ResumeServices.cs | 2 ++ .../Ghrh/Ghrh_ResumeServices.cs | 30 +++++++++++++++++++ Tiobon.Core/Tiobon.Core.xml | 6 ++++ 5 files changed, 57 insertions(+) diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index d7aef41d..e4fb614f 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -128,4 +128,17 @@ public class Ghrh_ResumeController : BaseController + /// 查询简历是否存在 + /// + /// + [HttpPost("CheckIsExist")] + public async Task> CheckIsExist([FromBody] InsertGhrh_ResumeInput input) + { + return await _service.CheckIsExist(input); + + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 2f4a3dfe..78be0836 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1205,6 +1205,12 @@ + + + 查询简历是否存在 + + + 教育背景(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs index f397e16f..7f060c30 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs @@ -19,5 +19,7 @@ namespace Tiobon.Core.IServices Task UpdateStatus(List ids, string status); Task MarkTags(List ids, List tags); + + Task> CheckIsExist(InsertGhrh_ResumeInput input); } } \ 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 ee6b6428..3748e4ae 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -281,4 +281,34 @@ public class Ghrh_ResumeServices : BaseServices> 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.OprateFailed("请输入身份证号码后六位!"); + + resume = await QuerySingle(x => x.Mobile == input.Mobile && x.IdCardNo.Contains(input.IdCardNo)); + + if (resume.IsNullOrEmpty()) + ServiceResult.OprateFailed("请输入身份证号码后六位!"); + + id = resume.Id; + + } + return ServiceResult.OprateSuccess("查询成功", id); + + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 2f4a3dfe..78be0836 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1205,6 +1205,12 @@ + + + 查询简历是否存在 + + + 教育背景(Controller)