|
|
|
@ -467,7 +467,7 @@ public class OrganizationController extends Controller {
|
|
|
|
|
Record rOrg = model.getOrgInfo(bureau_id);
|
|
|
|
|
root.put("title", rOrg.getStr("org_name"));
|
|
|
|
|
root.put("parentId", "0");
|
|
|
|
|
root.put("last", rOrg.getInt("cnt") > 0);
|
|
|
|
|
root.put("last", rOrg.getInt("cnt") == 0);
|
|
|
|
|
|
|
|
|
|
//Level1
|
|
|
|
|
JSONArray level1 = new JSONArray();
|
|
|
|
@ -490,7 +490,7 @@ public class OrganizationController extends Controller {
|
|
|
|
|
child.put("id", r2.getStr("org_id"));
|
|
|
|
|
child.put("title", r2.getStr("org_name"));
|
|
|
|
|
child.put("parentId", r2.getStr("parent_id"));
|
|
|
|
|
jo.put("last", false);
|
|
|
|
|
child.put("last", true);
|
|
|
|
|
children.add(child);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|