Commit cd4ce271 authored by liudong1993's avatar liudong1993

OKR获取直属下级调整

parent 8f4aefd9
This diff is collapsed.
using Edu.Common.Enum;
using Edu.Model.Entity.User;
using Edu.Model.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
......@@ -220,5 +221,17 @@ WHERE 1=1
parameters.Add("QDeptIds", DeptId, direction: ParameterDirection.Input);
return Get<RB_Department_ViewModel>(procName, parameters, commandType: CommandType.StoredProcedure).ToList();
}
/// <summary>
/// 获取所有部门负责人
/// </summary>
/// <param name="group_Id"></param>
/// <returns></returns>
public string GetAllDepartmentManagerIds(int group_Id)
{
string sql = $" SELECT GROUP_CONCAT(ManagerIds) AS ManagerIds FROM rb_department WHERE `Status`=0 and Group_Id ={group_Id} and ManagerIds <> '' ";
var obj = ExecuteScalar(sql);
return obj == null ? "" : obj.ToString();
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment