From 93654862ef6d6aa9b21c189afe9576618b280677 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 13 Jan 2021 16:17:18 +0800 Subject: [PATCH 1/7] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92):=20=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ext/ExtTestPlanLoadCaseMapper.java | 1 + .../mapper/ext/ExtTestPlanLoadCaseMapper.xml | 3 + .../commons/constants/ReportTriggerMode.java | 8 ++- .../track/service/LoadReportStatusEvent.java | 42 ++++++++++++ .../track/service/LoadReportStatusTask.java | 66 ------------------- .../service/TestPlanLoadCaseService.java | 3 - .../tableItem/ReportTriggerModeItem.vue | 1 + .../report/PerformanceTestReport.vue | 2 +- .../comonents/load/TestPlanLoadCaseList.vue | 3 +- 9 files changed, 57 insertions(+), 72 deletions(-) create mode 100644 backend/src/main/java/io/metersphere/track/service/LoadReportStatusEvent.java delete mode 100644 backend/src/main/java/io/metersphere/track/service/LoadReportStatusTask.java diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java index 29bf5bc474..688d4621c2 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java @@ -9,4 +9,5 @@ public interface ExtTestPlanLoadCaseMapper { List selectIdsNotInPlan(@Param("projectId") String projectId, @Param("planId") String planId); List selectTestPlanLoadCaseList(@Param("planId") String planId, @Param("projectId") String projectId); + void updateCaseStatus(@Param("reportId") String reportId, @Param("status") String status); } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml index ace3c621e2..26b0f9147d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml @@ -1,6 +1,9 @@ + + update test_plan_load_case tplc set status = #{status} where tplc.load_report_id = #{reportId} +