Пример #1
0
 // 获取各部门层级关系
 public String queryDept() throws Exception {
   Map p = this.getParamsAsDmp();
   List list = CommonUtil.getAllDept();
   List<TreeNodes> newlist = CommonUtil.getTreeList(list, "0");
   String listDept = JSON.toJSONString(newlist, true);
   this.setAttributeFromDmp(p);
   this.getResponse().getWriter().write(listDept);
   return null;
 }