|
@@ -47,6 +47,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.BufferedInputStream;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.io.InputStream;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.util.*;
|
|
|
import java.util.zip.ZipEntry;
|
|
@@ -822,6 +823,24 @@ public class MultiSimulationProjectServiceImpl implements MultiSimulationProject
|
|
|
return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@SneakyThrows
|
|
|
public void exportProjectTaskFileById(MultiSimulationProjectParam param){
|
|
|
String projectId = param.getProjectId();
|
|
@@ -886,11 +905,13 @@ public class MultiSimulationProjectServiceImpl implements MultiSimulationProject
|
|
|
Response.Body body = down.body();
|
|
|
ZipEntry entry2 = new ZipEntry(zipPath);
|
|
|
zos.putNextEntry(entry2);
|
|
|
- BufferedInputStream in = new BufferedInputStream(body.asInputStream());
|
|
|
+
|
|
|
+ InputStream in = body.asInputStream();
|
|
|
while ((len = in.read(buffer)) != -1) {
|
|
|
zos.write(buffer, 0, len);
|
|
|
}
|
|
|
in.close();
|
|
|
+
|
|
|
}else if ("Ego.csv".equals(fileName) || "evaluation.csv".equals(fileName)) {
|
|
|
MinioParameter minioPar = new MinioParameter();
|
|
|
minioPar.setObjectName(s);
|