| | |
| | | zipOut.putNextEntry(zipEntry); |
| | | zipOut.closeEntry(); |
| | | |
| | | NcNode packageNode = ncNodeService.getById(approved.getNcNodeId()); |
| | | Machine machine = machineService.getByCode(packageNode.getMachineCode());//程序包节点,获取注释用 |
| | | |
| | | List<NcNode> programNodes = ncNodeService.lambdaQuery().eq(NcNode::getIsLastEdition,1).eq(NcNode::getParentId, approved.getNcNodeId()).list(); |
| | | |
| | | FlowProgramFile programFile; |
| | |
| | | programFile = this.flowProgramFileService.getById(node.getFlowProgramFileId()); |
| | | if(programFile.isProgram()) {//程序文件,才会加入压缩包 |
| | | InputStream inputStream = ossTemplate.statFileStream(programFile.getOssName()); |
| | | Machine machine = machineService.getByCode(node.getMachineCode()); |
| | | InputStream addedIns1 = addSendDirAnnotation(inputStream, machine, annotationList); |
| | | InputStream addedIns2 = addProgramStatusAnnotation(addedIns1, status, machine, annotationList); |
| | | this.addInputStreamToZip(zipOut, addedIns2, filePathInZip); |