获取安排面试表单信息新增返回部门负责人信息

master
xiaochanghai 7 months ago
parent e8995d2e36
commit e5821d6775
  1. 11
      Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs
  2. 13
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -175,6 +175,17 @@ public class ResumeScheduleInterviewResult
public List<Ghra_Staff> Staffs { get; set; } public List<Ghra_Staff> Staffs { get; set; }
/// <summary>
/// 部门负责人ID
/// </summary>
public int? DeptManagerID { get; set; }
/// <summary>
/// 部门负责人邮箱
/// </summary>
public string DeptManagerEmail { get; set; }
} }
public class ResumeRecommendFormStaff public class ResumeRecommendFormStaff

@ -2352,6 +2352,19 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1";
result.Staffs = await Db.Queryable<Ghra_Staff>().Where(x => staffIds.Contains(x.StaffID)).ToListAsync(); result.Staffs = await Db.Queryable<Ghra_Staff>().Where(x => staffIds.Contains(x.StaffID)).ToListAsync();
} }
#region 返回部门负责人信息
var dept = await Db.Queryable<Ghro_Dept>().Where(x => x.DeptID == order.HireDeptId).FirstAsync();
if (dept != null)
{
var staff = await Db.Queryable<Ghra_Staff>().Where(x => x.StaffID == dept.DeptManagerID).FirstAsync();
if (staff != null)
{
result.DeptManagerID = staff.StaffID;
result.DeptManagerEmail = staff.Email;
}
}
#endregion
return ServiceResult<ResumeScheduleInterviewResult>.OprateSuccess("查询成功", result); return ServiceResult<ResumeScheduleInterviewResult>.OprateSuccess("查询成功", result);
} }
#endregion #endregion

Loading…
Cancel
Save