diff --git a/project/src/main/java/com/sdm/project/service/impl/SimulationRunServiceImpl.java b/project/src/main/java/com/sdm/project/service/impl/SimulationRunServiceImpl.java index d32e0cbb..ef21a6a8 100644 --- a/project/src/main/java/com/sdm/project/service/impl/SimulationRunServiceImpl.java +++ b/project/src/main/java/com/sdm/project/service/impl/SimulationRunServiceImpl.java @@ -1954,6 +1954,7 @@ public class SimulationRunServiceImpl extends ServiceImpl imageNames = extractPicNames(reportContent); + if (CollectionUtils.isNotEmpty(imageNames)) { + int sortOrder = 1; + for (String imageName : imageNames) { + archiveReportAndImage(req.getTaskId(), req.getRunId(), randomId, FileBizTypeEnum.CLOUD_FILE, imageName, String.valueOf(sortOrder++)); + } + } + // 获取临时路径中脚本生成的报告 String reportName = "report_" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) + @@ -2052,44 +2071,6 @@ public class SimulationRunServiceImpl extends ServiceImpl