|
|
@ -75,6 +75,19 @@ public class Ghrh_HumanRequestServices : BaseServices<Ghrh_HumanRequest, Ghrh_Hu |
|
|
|
result.ApplyDeptName = (await Db.Queryable<Ghro_Dept>().FirstAsync(o => result.ApplyDeptId == o.DeptID))?.DeptName; |
|
|
|
result.ApplyDeptName = (await Db.Queryable<Ghro_Dept>().FirstAsync(o => result.ApplyDeptId == o.DeptID))?.DeptName; |
|
|
|
result.BelongDeptName = (await Db.Queryable<Ghro_Dept>().FirstAsync(o => result.BelongDeptId == o.DeptID))?.DeptName; |
|
|
|
result.BelongDeptName = (await Db.Queryable<Ghro_Dept>().FirstAsync(o => result.BelongDeptId == o.DeptID))?.DeptName; |
|
|
|
result.TitleName = (await Db.Queryable<Ghra_Title>().FirstAsync(o => result.TitleId == o.TitleID))?.TitleName; |
|
|
|
result.TitleName = (await Db.Queryable<Ghra_Title>().FirstAsync(o => result.TitleId == o.TitleID))?.TitleName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 返回部门负责人信息 |
|
|
|
|
|
|
|
var dept = await Db.Queryable<Ghro_Dept>().Where(x => x.DeptID == result.BelongDeptId).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 result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |