Browse Source

feat:查询子用户获取商机管理权益字段

duxin 2 years ago
parent
commit
e474f5eec2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jyBXSubscribe/rpc/model/entity.go

+ 1 - 1
jyBXSubscribe/rpc/model/entity.go

@@ -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)