From 0e1b379b67bd87b857e2b4e79e46cdf6ddf86d88 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 7 Jan 2021 17:17:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/domain/TestPlanLoadCase.java | 2 + .../base/domain/TestPlanLoadCaseExample.java | 70 ++++ .../base/mapper/TestPlanLoadCaseMapper.xml | 25 +- .../mapper/ext/ExtTestPlanLoadCaseMapper.xml | 2 +- .../TestPlanLoadCaseController.java | 12 + .../testplan/LoadCaseReportRequest.java | 11 + .../request/testplan/RunTestPlanRequest.java | 1 + .../service/TestPlanLoadCaseService.java | 34 +- .../V62__add_test_plan_load_case.sql | 1 + .../view/comonents/load/LoadCaseReport.vue | 39 ++ .../comonents/load/LoadCaseReportView.vue | 376 ++++++++++++++++++ .../comonents/load/TestPlanLoadCaseList.vue | 78 +++- 12 files changed, 625 insertions(+), 26 deletions(-) create mode 100644 backend/src/main/java/io/metersphere/track/request/testplan/LoadCaseReportRequest.java create mode 100644 frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReport.vue create mode 100644 frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue diff --git a/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCase.java b/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCase.java index a57ce07329..ebe2afc8dc 100644 --- a/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCase.java +++ b/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCase.java @@ -11,6 +11,8 @@ public class TestPlanLoadCase implements Serializable { private String loadCaseId; + private String loadReportId; + private String status; private Long createTime; diff --git a/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCaseExample.java b/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCaseExample.java index 1184a849c1..7d946f4b7f 100644 --- a/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCaseExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/TestPlanLoadCaseExample.java @@ -314,6 +314,76 @@ public class TestPlanLoadCaseExample { return (Criteria) this; } + public Criteria andLoadReportIdIsNull() { + addCriterion("load_report_id is null"); + return (Criteria) this; + } + + public Criteria andLoadReportIdIsNotNull() { + addCriterion("load_report_id is not null"); + return (Criteria) this; + } + + public Criteria andLoadReportIdEqualTo(String value) { + addCriterion("load_report_id =", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdNotEqualTo(String value) { + addCriterion("load_report_id <>", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdGreaterThan(String value) { + addCriterion("load_report_id >", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdGreaterThanOrEqualTo(String value) { + addCriterion("load_report_id >=", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdLessThan(String value) { + addCriterion("load_report_id <", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdLessThanOrEqualTo(String value) { + addCriterion("load_report_id <=", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdLike(String value) { + addCriterion("load_report_id like", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdNotLike(String value) { + addCriterion("load_report_id not like", value, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdIn(List values) { + addCriterion("load_report_id in", values, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdNotIn(List values) { + addCriterion("load_report_id not in", values, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdBetween(String value1, String value2) { + addCriterion("load_report_id between", value1, value2, "loadReportId"); + return (Criteria) this; + } + + public Criteria andLoadReportIdNotBetween(String value1, String value2) { + addCriterion("load_report_id not between", value1, value2, "loadReportId"); + return (Criteria) this; + } + public Criteria andStatusIsNull() { addCriterion("`status` is null"); return (Criteria) this; diff --git a/backend/src/main/java/io/metersphere/base/mapper/TestPlanLoadCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/TestPlanLoadCaseMapper.xml index 1d2b1cea37..4fb8225c0f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/TestPlanLoadCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/TestPlanLoadCaseMapper.xml @@ -5,6 +5,7 @@ + @@ -68,7 +69,7 @@ - id, test_plan_id, load_case_id, `status`, create_time, update_time + id, test_plan_id, load_case_id, load_report_id, `status`, create_time, update_time