| | |
| | | addInputStreamToZip(zipOut,ins , programName + "/" + acceptedFile.getName(),acceptedFile.getName(),machineFile.getMachineCode()); |
| | | } |
| | | acceptedFile.setExportTime(DateUtil.now()); |
| | | acceptedFile.setStatus(MachineAcceptedFile.STATUS_EXPORTED); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * 给导出文件增加注释,涉密网要用 |
| | | * @param inputStream |
| | | * @param filename |
| | | * @param machineCode |
| | | * @return |
| | | * @throws IOException |
| | | * @param inputStream 输入流 |
| | | * @param filename 文件名 |
| | | * @param machineCode 机床代码 |
| | | * @return 完成后的stream |
| | | * @throws IOException 操作异常 |
| | | */ |
| | | InputStream setAnnotations(InputStream inputStream,String filename,String machineCode) throws IOException { |
| | | Machine machine = this.machineService.getByCode(machineCode); |