|
|
|
@ -6,9 +6,7 @@ import com.dsideal.base.Util.RemoteDbInit;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
public class CompanyUserModel {
|
|
|
|
|
|
|
|
|
@ -20,7 +18,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 yltcharge.t_ext_pm_parent)";
|
|
|
|
|
"select child_person_id from yltcharge.t_ext_pm_parent) and wx_user_id is not null";
|
|
|
|
|
List<Record> listParent = Db.find(parentSql);
|
|
|
|
|
|
|
|
|
|
// 2、获取所有子节点
|
|
|
|
|