|
@@ -483,6 +483,7 @@ public class WbsTreeServiceImpl extends BaseServiceImpl<WbsTreeMapper, WbsTree>
|
|
|
for (WbsTreeQueryValueVO wbsTree : listRoot) {
|
|
|
List<WbsTreeQueryValueVO> childrenList = mapAll.get(wbsTree.getId());
|
|
|
if (childrenList != null && childrenList.size() > 0) {
|
|
|
+ wbsTree.setTitle(wbsTree.getNodeName());
|
|
|
wbsTree.setChildren(childrenList);
|
|
|
wbsTree.setHasChildren(true);
|
|
|
this.buildWbsTreeByGetQueryValueByType(childrenList, mapAll);
|
|
@@ -507,8 +508,9 @@ public class WbsTreeServiceImpl extends BaseServiceImpl<WbsTreeMapper, WbsTree>
|
|
|
private void buildWbsTreePrivateByGetQueryValueByType(List<WbsTreePrivateQueryValueVO> listRoot, Map<Long, List<WbsTreePrivateQueryValueVO>> mapAll) {
|
|
|
for (WbsTreePrivateQueryValueVO wbsTree : listRoot) {
|
|
|
List<WbsTreePrivateQueryValueVO> childrenList = mapAll.get(wbsTree.getId());
|
|
|
- wbsTree.setChildren(childrenList);
|
|
|
if (childrenList != null && childrenList.size() > 0) {
|
|
|
+ wbsTree.setTitle(wbsTree.getNodeName());
|
|
|
+ wbsTree.setChildren(childrenList);
|
|
|
wbsTree.setHasChildren(true);
|
|
|
this.buildWbsTreePrivateByGetQueryValueByType(childrenList, mapAll);
|
|
|
}
|