|
@@ -110,7 +110,7 @@ func JsonUnmarshal(m interface{}, s interface{}) interface{} {
|
|
|
|
|
|
// 获取部门下可以进行分发的人员(不包含部门名称和部门id)
|
|
|
func GetDisUsers(entId, deptId int) *[]*User {
|
|
|
- r := IC.MainMysql.SelectBySql(`select DISTINCT c.id,c.name,c.phone from entniche_department_parent a
|
|
|
+ r := IC.MainMysql.SelectBySql(`select DISTINCT c.id,c.name,c.phone,c.power from entniche_department_parent a
|
|
|
INNER JOIN entniche_department_user b on (b.dept_id=? or (a.pid=? and a.id=b.dept_id))
|
|
|
INNER JOIN entniche_user c on (c.ent_id=? and b.user_id=c.id)
|
|
|
order by convert(c.name using gbk) COLLATE gbk_chinese_ci asc`, deptId, deptId, entId)
|