From 5ef235243540959928f33be5fe8f8e1850892da9 Mon Sep 17 00:00:00 2001 From: zhuxinru Date: Wed, 11 Feb 2026 16:44:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BC=96=E8=BE=91=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=9B=BE=E7=89=87=E5=92=8C=E6=8C=87=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SimulationRunServiceImpl.java | 61 +++++++------------ 1 file changed, 21 insertions(+), 40 deletions(-) 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