|
|
@ -291,8 +291,10 @@ public class ModuleTypeServiceImpl extends BaseServiceImpl<ModuleTypeDao, Module |
|
|
|
JSONObject childNode; |
|
|
|
// 存放其余未处理的类别(节点)
|
|
|
|
List<ModuleOptionDTO> others = this.getOtherDept(deptList, parent); |
|
|
|
|
|
|
|
while (!others.isEmpty()) { |
|
|
|
int startSize = 0; |
|
|
|
int endSize = others.size(); |
|
|
|
while (!others.isEmpty() && startSize != endSize) { |
|
|
|
startSize = endSize; |
|
|
|
for (int i = 0; i < parent.size(); i++) { |
|
|
|
node = parent.getJSONObject(i); |
|
|
|
children = new JSONArray(); |
|
|
@ -312,7 +314,7 @@ public class ModuleTypeServiceImpl extends BaseServiceImpl<ModuleTypeDao, Module |
|
|
|
parent = allChildren; |
|
|
|
|
|
|
|
others = this.getOtherDept(others, parent); |
|
|
|
|
|
|
|
endSize = others.size(); |
|
|
|
} |
|
|
|
//存放到redis中
|
|
|
|
ModuleOption option = new ModuleOption(); |
|
|
|