|
|
@ -423,7 +423,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
// 用于存放 每次组装好的 某一级节点。页面只需展示三级,所以没有存放顶级节点(市区)
|
|
|
// 用于存放 每次组装好的 某一级节点。页面只需展示三级,所以没有存放顶级节点(市区)
|
|
|
List<JSONArray> cache = Lists.newArrayList(); |
|
|
List<JSONArray> cache = Lists.newArrayList(); |
|
|
Map<String, Object> object; |
|
|
Map<String, Object> object; |
|
|
while (CollUtil.isNotEmpty(dataScopeDeptList)) { |
|
|
while (CollUtil.isNotEmpty(dataScopeDeptList) && CollUtil.isNotEmpty(parentDeptIdList)) { |
|
|
// 通过上级节点组装所有下级节点
|
|
|
// 通过上级节点组装所有下级节点
|
|
|
object = this.packageChildrenNodeArray(parentNodeArray, dataScopeDeptList, parentDeptIdList); |
|
|
object = this.packageChildrenNodeArray(parentNodeArray, dataScopeDeptList, parentDeptIdList); |
|
|
|
|
|
|
|
|
@ -561,7 +561,6 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DeptTreeDTO> getOtherDept(List<DeptTreeDTO> deptList, JSONArray parent) { |
|
|
List<DeptTreeDTO> getOtherDept(List<DeptTreeDTO> deptList, JSONArray parent) { |
|
|
List<Long> already = Lists.newArrayList(); |
|
|
List<Long> already = Lists.newArrayList(); |
|
|
for (int i = 0; i < parent.size(); i++) { |
|
|
for (int i = 0; i < parent.size(); i++) { |
|
|
|