| | |
| | | //如果该父类集合在结构中已经存在并且不是设备数据就不用重复添加了 |
| | | Long treeId = treeDeptWells.get(l).getDeptId(); |
| | | Integer id = treeDeptWells.get(l).getId(); |
| | | if(ancestor.equals(treeId)){ |
| | | if(ancestor.equals(treeId) && id==null){ |
| | | wellTrue = true; |
| | | } |
| | | } |
| | |
| | | private void recursionFnWell(List<TreeDeptWell> list, TreeDeptWell t) |
| | | { |
| | | // 得到子节点列表 |
| | | if(t.getId() == null){ |
| | | List<TreeDeptWell> childList = getChildListWell(list, t); |
| | | t.setChildren(childList); |
| | | for (TreeDeptWell tChild : childList) |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | private List<TreeDeptWell> getChildListWell(List<TreeDeptWell> list, TreeDeptWell t) |
| | | { |