From d9bff9324b70986519345272ea64e4c506ee50e4 Mon Sep 17 00:00:00 2001 From: wenyann Date: Wed, 28 Apr 2021 12:06:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=BA=E6=99=AF=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/api/service/ApiScenarioReportService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java index b5e715df5c..78b33db56b 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportService.java @@ -191,8 +191,10 @@ public class ApiScenarioReportService { startTime = scenarioResult.getRequestResults().get(0).getStartTime(); } ApiScenarioReport report = editReport(scenarioResult, startTime); - report.setTriggerMode(ReportTriggerMode.CASE.name()); - apiScenarioReportMapper.updateByPrimaryKeySelective(report); + if (!StringUtils.equals(ReportTriggerMode.API.name(), report.getTriggerMode())) { + report.setTriggerMode(ReportTriggerMode.CASE.name()); + apiScenarioReportMapper.updateByPrimaryKeySelective(report); + } // 报告详情内容 ApiScenarioReportDetail detail = new ApiScenarioReportDetail();