diff --git a/Model/Tiobon.Web.pdm b/Model/Tiobon.Web.pdm index d49b06ca..85e7d525 100644 --- a/Model/Tiobon.Web.pdm +++ b/Model/Tiobon.Web.pdm @@ -1,5 +1,5 @@ - + @@ -40731,7 +40731,7 @@ Ghra_staff_InsureBase Ghrh_InterviewRecord 1731491242 Administrator -1731568449 +1732066484 Administrator 面试记录 diff --git a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs index daeeeec1..a7a9b99e 100644 --- a/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs +++ b/Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs @@ -39,7 +39,7 @@ public class Ghrh_ResumeController : BaseController + /// ESS端查询面试记录 + /// + /// 状态 + /// + [HttpPost, Route("QueryESS/{status}")] + public async Task> QueryESS([FromBody] QueryBody body, string status) + { + var condition = "1!=1"; + switch (status) + { + case DIC_INTERVIEW_ORDER_STATUS.HasRecommended://待筛选 + condition = $"B.Status ='{DIC_INTERVIEW_ORDER_STATUS.HasRecommended}' AND B.IsPass IS NULL"; + break; + //case DIC_INTERVIEW_ORDER_STATUS.WaitAppointment://已约面 + // condition = $"Status ='{DIC_INTERVIEW_ORDER_STATUS.WaitAppointment}' "; + // break; + case "Fail": + condition = $"(Status ='{status}' OR Status ='{DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer}' OR Status ='{DIC_INTERVIEW_ORDER_STATUS.HasSendOffer}' OR Status ='{DIC_INTERVIEW_ORDER_STATUS.HasOffer}')"; + break; + //case DIC_INTERVIEW_ORDER_STATUS.WaitInterview://待面试 + // condition = $"Status ='{DIC_INTERVIEW_ORDER_STATUS.WaitInterview}' "; + // break; + default: + condition = $"Status ='{status}' "; + break; + } + return await _service.QueryESS(body, condition); + } + #endregion } \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 77134603..e6b89393 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -1449,6 +1449,13 @@ 已报到传true,未报到传false + + + ESS端查询面试记录 + + 状态 + + 教育背景(Controller) diff --git a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs index 48378847..5274c320 100644 --- a/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs +++ b/Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs @@ -55,4 +55,6 @@ public interface IGhrh_ResumeServices : IBaseServices RemindHasOffer(long id); Task ModifyIsOffer(long id, bool isOffer); + + Task> QueryESS(QueryBody filter, string condition); } \ 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 64084778..7d5ac705 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -228,6 +228,7 @@ public class Ghrh_ResumeServices : BaseServices tagIds.Contains(x.Id)); list.ForEach(async x => { + //x.ResumeId = x.Id; if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName; x.GenderLabel = await GetParaLabel("Gender", x.Gender); x.EducationLabel = await GetParaLabel("EducationalBGLevel", x.Education); @@ -1757,4 +1758,123 @@ END"; return ServiceResult.OprateSuccess(); } #endregion + + #region ESS端查询简历记录 + public async Task> QueryESS(QueryBody filter, string condition) + { + int? staffId = GetStaffId(); + RefAsync totalCount = 0; + var dt = DateTime.Now.Date; + string sql = @$"SELECT B.Id, + A.Id ResumeId, + A.CreateBy, + C.CreateTime, + A.CreateProg, + A.CreateIP, + A.UpdateBy, + A.UpdateTime, + A.UpdateProg, + A.UpdateIP, + A.OperateLogID, + A.StaffName, + A.StaffEname, + A.PhotoUrl, + A.Nation, + A.Birthday, + A.NativePlace, + A.Gender, + A.Age, + A.Education, + A.School, + A.GraduateDate, + A.ApplyStatus, + A.TitleId, + A.MaritalStatus, + A.PoliticStatus, + A.Mobile, + A.Email, + A.Indate, + A.UrgentRelation, + A.UrgentContact, + A.UrgentContactTel, + A.UrgentContactAddress, + A.Urgent2Relation, + A.Urgent2Contact, + A.Urgent2ContactTel, + A.Urgent2ContactAddress, + A.PreJobSeniority, + A.EduDegree, + A.CertificateType, + A.IdCardNo, + A.IDCardBegin, + A.IDCardEnd, + A.RegisteredType, + A.IDCardOrg, + A.RegisteredAddress, + A.NowAddress, + A.Introducer, + A.NationNo, + A.FundAccountID, + A.FundBase, + A.InInsureAccountNo, + A.InsureAccountID, + A.InsureBase, + A.IsInsure, + A.IsFund, + A.IsRecommend, + A.IsStay, + A.CarNo, + A.Tags, + A.Status, + A.WorkYears, + A.SalaryPeriod, + A.ApplicationStatus, + A.ApplicationTime, + A.TitleType, + A.StaffType1, + -- A.InterviewResult, + A.FailInterviewReason, + A.RemarkSz, + A.IsDefault, + A.IsEnable, + A.Reverse1, + A.Reverse2, + A.Reverse3, + A.Reverse4, + A.Reverse5, + A.Reverse6, + A.Reverse7, + A.Reverse8, + A.Reverse9, + A.Reverse10, + A.ReverseI1, + A.ReverseI2, + B.OrderNo, + B.RecommendTime, + B.[Round], + B.IsPass, + B.InterviewResult, + C.Status OrderStatus, + C.StaffId +FROM Ghrh_Resume A + JOIN Ghrh_InterviewOrder B ON A.ID = B.ResumeId + JOIN Ghrh_InterviewRecord C + ON B.ID = C.OrderId AND B.[Round] = C.[Round] +WHERE A.IsEnable = 1 AND C.IsEnable = 1"; + + if (string.IsNullOrWhiteSpace(filter.orderBy)) + filter.orderBy = "CreateTime ASC"; + + sql += $" AND C.StaffId={staffId}"; + sql += " AND " + condition; + if (filter.pageSize == 0) + filter.pageSize = 10000; + var data = await Db.SqlQueryable(sql) + .OrderBy(filter.orderBy) + .ToPageListAsync(filter.pageNum, filter.pageSize, totalCount); + + return new ServicePageResult(filter.pageNum, totalCount, filter.pageSize, data); + } + + #endregion } \ No newline at end of file diff --git a/Tiobon.Core/Tiobon.Core.Model.xml b/Tiobon.Core/Tiobon.Core.Model.xml index c9ce2ad6..b65f50d2 100644 --- a/Tiobon.Core/Tiobon.Core.Model.xml +++ b/Tiobon.Core/Tiobon.Core.Model.xml @@ -6395,11 +6395,6 @@ 轮数 - - - 简历接收人ids - - 预面试时间1 @@ -6440,11 +6435,6 @@ 简历首次查询时间 - - - 评估时间 - - 是否通过 @@ -6455,11 +6445,6 @@ 面试结果 - - - 状态 - - 备注 @@ -6530,6 +6515,21 @@ 预留字段12 + + + 状态 + + + + + 评估时间 + + + + + 面试官ID + + 个人简历 (Dto.Base) @@ -17016,11 +17016,6 @@ 轮数 - - - 简历接收人ids - - 预面试时间1 @@ -17061,11 +17056,6 @@ 简历首次查询时间 - - - 评估时间 - - 是否通过 @@ -17076,11 +17066,6 @@ 面试结果 - - - 状态 - - 备注 @@ -17151,6 +17136,21 @@ 预留字段12 + + + 状态 + + + + + 评估时间 + + + + + 面试官ID + + 个人简历 (Model) @@ -21847,6 +21847,36 @@ 修改信息 + + + 订单号 + + + + + 推荐时间 + + + + + 轮数 + + + + + 是否通过 + + + + + 订单状态 + + + + + 员工ID + + 教育背景(Dto.View1) diff --git a/Tiobon.Core/Tiobon.Core.xml b/Tiobon.Core/Tiobon.Core.xml index 77134603..e6b89393 100644 --- a/Tiobon.Core/Tiobon.Core.xml +++ b/Tiobon.Core/Tiobon.Core.xml @@ -1449,6 +1449,13 @@ 已报到传true,未报到传false + + + ESS端查询面试记录 + + 状态 + + 教育背景(Controller)