Ver código fonte

增加需求,可以分别查询产品的商品化专利清单和产品架构的相关专利清单

chendayu 2 anos atrás
pai
commit
f405af7452

+ 1 - 0
PAS/src/main/java/cn/cslg/pas/service/upLoadPatent/ExcutePatentDataExcel.java

@@ -66,6 +66,7 @@ public class ExcutePatentDataExcel implements IExcutePatentData {
             byte[] bytes = fileManagerService.downloadSystemFileFromFMS(task.getSystemFileId());
             //创建临时文件tempFile,并将文件读取到tempFile
             File tempFile = File.createTempFile("temp", suffix);
+
             try (
                     InputStream inputStream = new ByteArrayInputStream(bytes);
                     FileOutputStream outputStream = new FileOutputStream(tempFile)

+ 4 - 2
PAS/src/main/java/cn/cslg/pas/service/upLoadPatent/UploadTaskService.java

@@ -67,8 +67,10 @@ public class UploadTaskService {
 
         //创建临时文件tempFile,并将file读取到tempFile
         File tempFile = File.createTempFile("temp", suffix);
-        try (InputStream inputStream = file.getInputStream();
-             FileOutputStream outputStream = new FileOutputStream(tempFile)) {
+        try (
+                InputStream inputStream = file.getInputStream();
+                FileOutputStream outputStream = new FileOutputStream(tempFile)
+        ) {
             IOUtils.copy(inputStream, outputStream); // 将输入流复制到临时文件
         }