|
@@ -3491,7 +3491,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
response.setHeader("Content-Disposition", "attachment;fileName=" + URLEncoder.encode("运行任务包.zip", "UTF-8"));
|
|
|
zos = new ZipOutputStream(response.getOutputStream());
|
|
|
int i = 1;
|
|
|
- String egoFile = "Ego.csv";
|
|
|
+ ArrayList<String> fileList = CollectionUtil.createArrayList("Ego.csv", "evaluation.csv");
|
|
|
for (ManualProjectTaskVo v : manualProjectTaskVos) {
|
|
|
String runResultFilePath = v.getRunResultFilePath();
|
|
|
if (!isEmpty(runResultFilePath)) {
|
|
@@ -3536,13 +3536,13 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
zos.write(buffer, 0, len);
|
|
|
}
|
|
|
|
|
|
- } else if (egoFile.equals(fileName)) {
|
|
|
+ } else if (fileList.contains(fileName)) {
|
|
|
|
|
|
MinioParameter minioParameter = new MinioParameter();
|
|
|
if (s.contains("/")) {
|
|
|
- minioParameter.setObjectName(runResultFilePath + "/" + egoFile);
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "/" + fileName);
|
|
|
} else {
|
|
|
- minioParameter.setObjectName(runResultFilePath + "\\" + egoFile);
|
|
|
+ minioParameter.setObjectName(runResultFilePath + "\\" + fileName);
|
|
|
}
|
|
|
|
|
|
Response download = fileDownService.download(minioParameter);
|
|
@@ -3551,7 +3551,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
in = new BufferedInputStream(inputStream);
|
|
|
|
|
|
//任务文件路径
|
|
|
- String taskFilePath = taskPagePath + File.separator + egoFile;
|
|
|
+ String taskFilePath = taskPagePath + File.separator + fileName;
|
|
|
// FileUtil.writeInputStreamToLocalFile(inputStream,taskFilePath);
|
|
|
|
|
|
ZipEntry entry = new ZipEntry(taskFilePath);
|