|
|
@ -1,11 +1,7 @@ |
|
|
|
using DinkToPdf; |
|
|
|
using DinkToPdf; |
|
|
|
using DinkToPdf.Contracts; |
|
|
|
using DinkToPdf.Contracts; |
|
|
|
using Google.Protobuf.WellKnownTypes; |
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.AspNetCore.Http.HttpResults; |
|
|
|
|
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using System.ComponentModel; |
|
|
|
|
|
|
|
using System.Drawing; |
|
|
|
|
|
|
|
using System.IO.Compression; |
|
|
|
using System.IO.Compression; |
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
|
|
@ -315,7 +311,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
//【简历库-录用-已发offer】配置按钮 |
|
|
|
//【简历库-录用-已发offer】配置按钮 |
|
|
|
var sendOfferConfig = await Db.Queryable<Ghrh_Config>().Where(x => x.ConfigCode == "ESS_Recruit_Custom_Transfer_Staff").FirstAsync(); |
|
|
|
var sendOfferConfig = await Db.Queryable<Ghrh_Config>().Where(x => x.ConfigCode == "ESS_Recruit_Custom_Transfer_Staff").FirstAsync(); |
|
|
|
|
|
|
|
|
|
|
|
var applyOrders = await Db.Queryable<Ghrh_OfferApplyOrder>().Where(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value) && x.WorkState == 0 && x.WorkNo != null).ToListAsync(); |
|
|
|
var applyOrders = await Db.Queryable<Ghrh_OfferApplyOrder>().Where(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value) && x.WorkState == 0).ToListAsync(); |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
list.ForEach(async x => |
|
|
|
list.ForEach(async x => |
|
|
@ -375,8 +371,15 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
//x.InterviewResult = "推荐中"; |
|
|
|
//x.InterviewResult = "推荐中"; |
|
|
|
x.OfferApplyType = offerApplyConfig?.ConfigValue ?? "System"; |
|
|
|
x.OfferApplyType = offerApplyConfig?.ConfigValue ?? "System"; |
|
|
|
|
|
|
|
|
|
|
|
if (applyOrders.Any(o => o.ResumeId == x.ResumeId)) |
|
|
|
var applyOrder = applyOrders.Where((o => o.ResumeId == x.ResumeId)).SingleOrDefault(); |
|
|
|
x.OfferApplyExist = true; |
|
|
|
if (applyOrder != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (applyOrder.WorkNo.IsNotEmptyOrNull()) |
|
|
|
|
|
|
|
x.OfferApplyExist = true; |
|
|
|
|
|
|
|
//x.HireCompanyName = (await Db.Queryable<company>().Where(x => x.DeptID == applyOrder.DeptId).FirstAsync())?.DeptName |
|
|
|
|
|
|
|
x.HireDeptName = (await Db.Queryable<Ghro_Dept>().Where(x => x.DeptID == applyOrder.DeptId).FirstAsync())?.DeptName; |
|
|
|
|
|
|
|
x.HireTitleName = (await Db.Queryable<Ghra_Title>().Where(x => x.TitleID == applyOrder.TitleId).FirstAsync())?.TitleName; |
|
|
|
|
|
|
|
} |
|
|
|
x.InterviewTime1 = order.InterviewTime; |
|
|
|
x.InterviewTime1 = order.InterviewTime; |
|
|
|
x.InterviewContent = order.InterviewContent; |
|
|
|
x.InterviewContent = order.InterviewContent; |
|
|
|
|
|
|
|
|
|
|
@ -1599,7 +1602,7 @@ END"; |
|
|
|
return ServiceResult.OprateFailed("至少选择一名面试者!"); |
|
|
|
return ServiceResult.OprateFailed("至少选择一名面试者!"); |
|
|
|
|
|
|
|
|
|
|
|
recommend.InterviewStaffs = recommend.InterviewStaffs.Where(x => x.StaffId != null).Distinct().ToList(); |
|
|
|
recommend.InterviewStaffs = recommend.InterviewStaffs.Where(x => x.StaffId != null).Distinct().ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (recommend.RequestId.IsNotEmptyOrNull()) |
|
|
|
if (recommend.RequestId.IsNotEmptyOrNull()) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2107,7 +2110,7 @@ END"; |
|
|
|
InterviewIds = JsonHelper.ObjToJson(interviewIds), |
|
|
|
InterviewIds = JsonHelper.ObjToJson(interviewIds), |
|
|
|
Interviewer = string.Join(",", interviewer.Select(o => o.StaffName)) |
|
|
|
Interviewer = string.Join(",", interviewer.Select(o => o.StaffName)) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//await Db.Updateable<Ghrh_InterviewRecord>() |
|
|
|
//await Db.Updateable<Ghrh_InterviewRecord>() |
|
|
|
// .SetColumns(it => new Ghrh_InterviewRecord() |
|
|
|
// .SetColumns(it => new Ghrh_InterviewRecord() |
|
|
|
// { |
|
|
|
// { |
|
|
@ -2116,7 +2119,7 @@ END"; |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
// .Where(it => it.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview && it.OrderId == order.Id) |
|
|
|
// .Where(it => it.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview && it.OrderId == order.Id) |
|
|
|
// .ExecuteCommandAsync(); |
|
|
|
// .ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < input.InterviewStaffs.Count; i++) |
|
|
|
for (int i = 0; i < input.InterviewStaffs.Count; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
await _ghrh_InterviewRecordServices.Add(new InsertGhrh_InterviewRecordInput() |
|
|
|
await _ghrh_InterviewRecordServices.Add(new InsertGhrh_InterviewRecordInput() |
|
|
@ -2939,6 +2942,13 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
// result.DeptManagerEmail = staff.Email; |
|
|
|
// result.DeptManagerEmail = staff.Email; |
|
|
|
// } |
|
|
|
// } |
|
|
|
//} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var applyOrder = await Db.Queryable<Ghrh_OfferApplyOrder>().Where(x => x.ResumeId == id).FirstAsync(); |
|
|
|
|
|
|
|
if (applyOrder != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
result.DeptName = (await Db.Queryable<Ghro_Dept>().Where(x => x.DeptID == applyOrder.DeptId).FirstAsync())?.DeptName; |
|
|
|
|
|
|
|
result.TitleName = (await Db.Queryable<Ghra_Title>().Where(x => x.TitleID == applyOrder.TitleId).FirstAsync())?.TitleName; |
|
|
|
|
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
return ServiceResult<ResumeScheduleInterviewResult>.OprateSuccess("查询成功", result); |
|
|
|
return ServiceResult<ResumeScheduleInterviewResult>.OprateSuccess("查询成功", result); |
|
|
|