|
|
|
@ -20,7 +20,7 @@ public class CompanyUserModel {
|
|
|
|
|
public JSONArray getTreeData() {
|
|
|
|
|
// 1、获取所有父节点
|
|
|
|
|
String parentSql = "select distinct wx_user_id,wx_person_name from yltcharge.t_ext_company_user where wx_user_id not in (" +
|
|
|
|
|
"select child_person_id from t_ext_pm_parent)";
|
|
|
|
|
"select child_person_id from yltcharge.t_ext_pm_parent)";
|
|
|
|
|
List<Record> listParent = Db.find(parentSql);
|
|
|
|
|
|
|
|
|
|
// 2、获取所有子节点
|
|
|
|
|