From 8f810618a80a903ad66952fb4758ca81b8d2c636 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 17 Dec 2024 15:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=85=A5=E5=BE=85=E5=8F=91Offer=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E5=BD=95?= =?UTF-8?q?=E7=94=A8=E5=AE=A1=E6=89=B9=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Ghrh/Ghrh_ResumeController.cs | 4 ++-- Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index aa7906dc..79834679 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -440,9 +440,9 @@ public class Ghrh_ResumeController : BaseController - /// 发起录用审批 + /// 转入待发Offer /// /// 简历ID /// diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 7e481f08..4303da49 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -2415,7 +2415,7 @@ END"; } #endregion - #region 发起录用审批-作废 + #region 转入待发Offer public async Task ApplyOfferApproval(List ids) { for (int i = 0; i < ids.Count; i++) @@ -2425,15 +2425,18 @@ END"; if (entity == null) return ServiceResult.OprateFailed("无效的简历ID!"); - if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.HasInterview) - return ServiceResult.OprateFailed("暂不可发起录用审批!"); + if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.HasInterview || entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitRecommended) + return ServiceResult.OprateFailed("只有在【已面试】、【待推荐】状态下,才能转入待发Offer!"); + + if (await Db.Queryable().Where(x => x.WorkState == 0 && x.ResumeId == id).AnyAsync()) + return ServiceResult.OprateFailed("当前简历录用审批处于审批中,不可转入待发Offer!"); await UpdateResumeStatus(entity, DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer); var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); await UpdateInterviewOrderStatus(order, DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer); await UpdateInterviewRecordStatus(order, DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer); - await LogRecord(order.Id, "发起录用审批!", id, null, "ApplyOffer"); + await LogRecord(order.Id, "转入待发Offer!", id, null, "TransferWaitSendOffer"); } return ServiceResult.OprateSuccess();