Преглед изворни кода

任务详情临时文件--back

WXF пре 3 година
родитељ
комит
ea8290e7b3

+ 5 - 3
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -743,11 +743,13 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
             //minioParameter.setObjectName("test/ego.csv");
             Response download = fileDownService.download(minioParameter);
             Response.Body body = download.body();
-            //fileInputStream = body.asInputStream();
-            String path = ClassLoader.getSystemResource("").getPath() + StringUtil.getRandomCode() + "temp";
+            fileInputStream = body.asInputStream();
+
+            /*String path = "/temp" + StringUtil.getRandomCode();
             FileUtil.writeInputStreamToLocalFile(body.asInputStream(),path);
             file = new File(path);
-            fileInputStream = new FileInputStream(file);
+            fileInputStream = new FileInputStream(file);*/
+
             inputStreamReader = new InputStreamReader(fileInputStream,"utf-8");
 
             bufferedReader = new BufferedReader(inputStreamReader);