|
|
|
@ -48,11 +48,14 @@ public class DeptServiceImpl implements IDeptService
|
|
|
|
|
|
|
|
|
|
for (Dept dept : deptList)
|
|
|
|
|
{
|
|
|
|
|
Map<String, Object> deptMap = new HashMap<String, Object>();
|
|
|
|
|
deptMap.put("id", dept.getDeptId());
|
|
|
|
|
deptMap.put("pId", dept.getParentId());
|
|
|
|
|
deptMap.put("name", dept.getDeptName());
|
|
|
|
|
trees.add(deptMap);
|
|
|
|
|
if (UserConstants.DEPT_NORMAL == dept.getStatus())
|
|
|
|
|
{
|
|
|
|
|
Map<String, Object> deptMap = new HashMap<String, Object>();
|
|
|
|
|
deptMap.put("id", dept.getDeptId());
|
|
|
|
|
deptMap.put("pId", dept.getParentId());
|
|
|
|
|
deptMap.put("name", dept.getDeptName());
|
|
|
|
|
trees.add(deptMap);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return trees;
|
|
|
|
|
}
|
|
|
|
|