From 7cb8e8285e328c4d471ccdcf8ea8e9b3e535724d Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 24 Feb 2022 12:03:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8E=92=E5=BA=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/ApiScenarioReportStructureService.java | 1 + .../java/io/metersphere/log/service/OperatingLogService.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java index 10b4d6e2b8..f89234fa5e 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -282,6 +282,7 @@ public class ApiScenarioReportStructureService { private List formatApiReport(String reportId, List stepList) { ApiDefinitionExecResultExample example = new ApiDefinitionExecResultExample(); example.createCriteria().andIntegratedReportIdEqualTo(reportId); + example.setOrderByClause("end_time desc"); List reportResults = definitionExecResultMapper.selectByExampleWithBLOBs(example); List resultVos = new LinkedList<>(); for (int i = 0; i < reportResults.size(); i++) { diff --git a/backend/src/main/java/io/metersphere/log/service/OperatingLogService.java b/backend/src/main/java/io/metersphere/log/service/OperatingLogService.java index 11a19605e3..4856d12b07 100644 --- a/backend/src/main/java/io/metersphere/log/service/OperatingLogService.java +++ b/backend/src/main/java/io/metersphere/log/service/OperatingLogService.java @@ -37,7 +37,6 @@ public class OperatingLogService { public void create(OperatingLogWithBLOBs log, String sourceIds) { log.setSourceId(""); operatingLogMapper.insert(log); - System.out.println(JSON.toJSONString(log)); if (StringUtils.isNotEmpty(sourceIds)) { List ids = new ArrayList<>(); if (sourceIds.startsWith("[")) {