parent
0813e6f659
commit
598703aa32
|
@ -1365,12 +1365,14 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
|
||||||
int finalI = i;
|
int finalI = i;
|
||||||
//在选择的模块下建模块,查看选择的模块下有没有同名的模块
|
//在选择的模块下建模块,查看选择的模块下有没有同名的模块
|
||||||
List<ApiModule> moduleList = pidChildrenMap.get(parentModule.getId());
|
List<ApiModule> moduleList = pidChildrenMap.get(parentModule.getId());
|
||||||
List<ApiModule> collect1 = moduleList.stream().filter(t -> t.getName().equals(tagTree[finalI])).collect(Collectors.toList());
|
if (moduleList != null && !moduleList.isEmpty()) {
|
||||||
if (collect1.isEmpty()) {
|
List<ApiModule> collect1 = moduleList.stream().filter(t -> t.getName().equals(tagTree[finalI])).collect(Collectors.toList());
|
||||||
return createModule(tagTree, i, parentModule, moduleMap, pidChildrenMap, idPathMap);
|
if (collect1.isEmpty()) {
|
||||||
} else {
|
return createModule(tagTree, i, parentModule, moduleMap, pidChildrenMap, idPathMap);
|
||||||
returnModule = collect1.get(0);
|
} else {
|
||||||
parentModule = collect1.get(0);
|
returnModule = collect1.get(0);
|
||||||
|
parentModule = collect1.get(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return returnModule;
|
return returnModule;
|
||||||
|
|
Loading…
Reference in New Issue