use of app.hongs.serv.master.Dept in project HongsCORE by ihongs.
the class AuthKit method getMoreDepts.
public static Set getMoreDepts(String uid) throws HongsException {
Table rel = DB.getInstance("master").getTable("user_dept");
List<Map> lst = rel.fetchCase().filter("user_id = ?", uid).select("dept_id").all();
Set set = new HashSet();
Dept dp = new Dept();
for (Map row : lst) {
set.addAll(dp.getChildIds((String) row.get("dept_id"), true));
}
return set;
}