| | |
| | | List<MdcProductionTreeModel> treeList = new ArrayList<>(); |
| | | for (MdcProductionTreeModel mdcProductionTreeModel : recordList) { |
| | | if (oConvertUtils.isEmpty(mdcProductionTreeModel.getParentId())) { |
| | | mdcProductionTreeModel.setType(1); |
| | | treeList.add(mdcProductionTreeModel); |
| | | idList.add(new MdcEquipmentTree().convertByProduction(mdcProductionTreeModel)); |
| | | } |
| | |
| | | MdcProductionTreeModel m = recordList.get(i1); |
| | | if (m.getParentId() != null && m.getParentId().equals(model.getId())) { |
| | | model.getChildren().add(m); |
| | | m.setType(1); |
| | | mdcEquipmentTree.getChildren().add(new MdcEquipmentTree().convertByProduction(m)); |
| | | } |
| | | } |