| | |
| | | @SuppressWarnings("unused") ToolsClassify toolsClassify = new ToolsClassify(); |
| | | List<CommonGenericTree> list = new ArrayList<>(); |
| | | Map<String, CommonGenericTree> map = new HashMap<>(); |
| | | CommonGenericTree<ToolsClassify> node = new CommonGenericTree<>(); |
| | | if (CollectionUtils.isNotEmpty(toolsClassifyList)) { |
| | | CommonGenericTree<ToolsClassify> tcNode; |
| | | CommonGenericTree<ToolsClassify> childNode; |
| | |
| | | tcNode.setValue(tc.getId()); |
| | | tcNode.setDisabled(CommonConstant.STATUS_0.equals(tc.getStatus()) ? true : false); |
| | | tcNode.setRField1(tc.getClassifyId()); |
| | | tcNode.setRField2(getBaseParent(tc.getId(), 0).getClassifyId()); |
| | | //tcNode.setRField2(getBaseParent(tc.getId(), 0).getClassifyId()); |
| | | tcNode.setEntity(tc); |
| | | list.add(tcNode); |
| | | map.put(tc.getId(), tcNode); |
| | |
| | | childNode.setValue(tc.getId()); |
| | | childNode.setDisabled(CommonConstant.STATUS_0.equals(tc.getStatus()) ? true : false); |
| | | childNode.setRField1(tc.getClassifyId()); |
| | | childNode.setRField2(getBaseParent(tc.getId(), 0).getClassifyId()); |
| | | //childNode.setRField2(getBaseParent(tc.getId(), 0).getClassifyId()); |
| | | childNode.setEntity(tc); |
| | | tcNode.addChildren(childNode); |
| | | map.put(child.getId(), childNode); |