From 0f367143155484a72277580516b1511bf9870223 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 21 Jan 2025 10:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=84=E7=90=86=E4=BA=BA?= =?UTF-8?q?=E5=8A=9B=E9=9C=80=E6=B1=82=E5=8D=95=EF=BC=8C=E9=9D=A2=E8=AF=95?= =?UTF-8?q?=E4=BA=BA=E6=95=B0=E3=80=81=E5=BD=95=E7=94=A8=E4=BA=BA=E6=95=B0?= =?UTF-8?q?=E3=80=81=E6=8A=A5=E5=88=B0=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghrh/Ghrh_ResumeServices.cs | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index ec6b68d8..95d81bd2 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -2449,6 +2449,16 @@ A.DataType, A.ColumnType, A.IsRequired, A.DataSourceType, A.DataSource, A.DataSo #endregion + #region 处理人力需求单 录用人数 + if (order.RequestId.IsNotEmptyOrNull() ) + { + var sql = $@"UPDATE Ghrh_HumanRequest + SET OfferCount = ISNULL (OfferCount, 0) + 1 + WHERE Id = {order.RequestId}"; + await Db.Ado.ExecuteCommandAsync(sql); + } + #endregion + return ServiceResult.OprateSuccess(); } @@ -3742,6 +3752,16 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 await _ghrh_InterviewRecordServices.Update(records, ["AssessTime", "Status", "IsPass", "InterviewResult", "InterviewResultRemark", "UpdateTime", "UpdateBy"]); } + #region 处理人力需求单 面试人数 + if (order.RequestId.IsNotEmptyOrNull() && entity.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview) + { + var sql = $@"UPDATE Ghrh_HumanRequest + SET InterviewCount = ISNULL (InterviewCount, 0) + 1 + WHERE Id = {order.RequestId}"; + await Db.Ado.ExecuteCommandAsync(sql); + } + #endregion + if (entity.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview) await UpdateResumeStatus(entity, Status); @@ -4987,6 +5007,18 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 staffId = await Db.Insertable(dict).AS("Ghra_Staff").ExecuteReturnIdentityAsync(); if (staffId > 0) { + + #region 处理人力需求单 报到人数 + var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); + if (order.RequestId.IsNotEmptyOrNull()) + { + sql = $@"UPDATE Ghrh_HumanRequest + SET CheckInCount = ISNULL (CheckInCount, 0) + 1 + WHERE Id = {order.RequestId}"; + await Db.Ado.ExecuteCommandAsync(sql); + } + #endregion + sql = $"update Ghra_Staff set Indate='{inTime}' where StaffID={staffId} and Indate is null"; if (inTime != null) await Db.Ado.ExecuteCommandAsync(sql);