| | |
| | | recObj.put("code", program.getCode()); |
| | | recObj.put("ossName",program.getOssName()); |
| | | recObj.put("isTextFile",program.getIsTextFile()); |
| | | recObj.put("isLastEdition",program.getIsLastEdition()); |
| | | recObj.put("category",program.getCategory()); |
| | | recObj.put("description",program.getDescription()); |
| | | recObj.put("name",program.getName()); |
| | |
| | | |
| | | ArrayList<Long> exportNodeIdList = new ArrayList<>(); |
| | | for(NcProgram program : programs){ |
| | | JSONObject recObj = new JSONObject(); |
| | | if(!exportNodeIdList.contains(program.getNcNodeId())){ |
| | | exportNodeIdList.add(program.getNcNodeId()); |
| | | //JSONObject recObj = new JSONObject(); |
| | | if(!exportNodeIdList.contains(program.getBindNcNodeId())){ |
| | | exportNodeIdList.add(program.getBindNcNodeId()); |
| | | } |
| | | NcNode ncNode = ncNodeService.getById(program.getNcNodeId()); |
| | | NcNode ncNode = ncNodeService.getById(program.getBindNcNodeId());//从绑定的节点本身开始导出 |
| | | |
| | | if(StringUtils.isNotEmpty(ncNode.getParentIds())){ |
| | | List<Long> pids = Func.toLongList(ncNode.getParentIds()); |