From 4f3bed919c07a9941bccbee2add0b140781e1967 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Fri, 29 Nov 2024 14:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=AA=8C=E8=AF=81=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E8=AF=81=E5=8F=B7=E7=A0=81=E6=8F=90=E4=BA=A4=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs | 5 ++--- Tiobon.Core.Api/Tiobon.Core.xml | 5 ++--- Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs | 6 ++++++ Tiobon.Core/Tiobon.Core.xml | 5 ++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index 943eb78b..03c01c3a 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -240,7 +240,7 @@ public class Ghrh_ResumeController : BaseController /// 简历Id - /// + /// /// [HttpPost, Route("SubscribeInterview/{id}")] public async Task SubscribeInterview(long id, [FromBody] ResumeSubscribeInterviewForm form) => await _service.SubscribeInterview(id, form); @@ -363,7 +363,7 @@ public class Ghrh_ResumeController : BaseController /// 已报到/未报道接口 /// - /// 简历Id + /// 简历Id /// 已报到传true,未报到传false /// [HttpPost, Route("ModifyIsOffer/{value}")] @@ -388,7 +388,6 @@ public class Ghrh_ResumeController : BaseController /// body - /// 状态 /// [HttpPost, Route("QueryESS")] public async Task> QueryESS([FromBody] QueryBody body) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 8e836bb8..fb379292 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1380,7 +1380,7 @@ 面试官约面 简历Id - + @@ -1456,7 +1456,7 @@ 已报到/未报道接口 - 简历Id + 简历Id 已报到传true,未报到传false @@ -1472,7 +1472,6 @@ ESS端查询面试记录 body - 状态 diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 8a2c758d..50ec1a95 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -1024,6 +1024,11 @@ END"; public async Task Submit(long id, string status, ResumeFormColumnSubmit resume) { + if (resume.Base.IdCardNo.IsNotEmptyOrNull()) + if (await base.AnyAsync(x => x.Id != id && x.IdCardNo == resume.Base.IdCardNo)) + return ServiceResult.OprateFailed($"证件号码【{resume.Base.IdCardNo}】已在系统中存在,请确认填写是否正确"); + + resume.Base.ApplicationStatus = status; resume.Base.ApplicationTime = DateTime.Now; if (status == "Submit") @@ -1042,6 +1047,7 @@ END"; if (resume.Base.PhotoUrls != null && resume.Base.PhotoUrls.Any()) resume.Base.PhotoUrl = resume.Base.PhotoUrls[0].RelativePath; + #region 计算年龄 if (resume.Base.Birthday != null && resume.Base.Birthday > DateTime.MinValue) { diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 8e836bb8..fb379292 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1380,7 +1380,7 @@ 面试官约面 简历Id - + @@ -1456,7 +1456,7 @@ 已报到/未报道接口 - 简历Id + 简历Id 已报到传true,未报到传false @@ -1472,7 +1472,6 @@ ESS端查询面试记录 body - 状态