From 5d1ecc51d15cf0a60ed052ed0e01d9d3ce9a6e14 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 26 Nov 2020 18:04:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F?= =?UTF-8?q?=E8=B8=AA):=20=E4=BC=98=E5=8C=96=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ext/ExtTestPlanTestCaseMapper.java | 14 ++++++++ .../mapper/ext/ExtTestPlanTestCaseMapper.xml | 24 +++++++++++-- .../TestPlanTestCaseController.java | 10 ++++++ .../service/TestPlanTestCaseService.java | 4 +++ backend/src/main/java/io/metersphere/xpack | 2 +- .../view/comonents/TestPlanTestCaseEdit.vue | 35 +++++++++---------- frontend/src/business/components/xpack | 2 +- 7 files changed, 68 insertions(+), 23 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java index 1bff19ab89..da5b9c6e3f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.java @@ -38,4 +38,18 @@ public interface ExtTestPlanTestCaseMapper { */ List listTestCaseByProjectIds(@Param("ids") List ids); + /** + * 获取完整的测试计划下用例的详细信息 + * @param request id(test_plan_test_case.id) 不能为空 + * @return TestPlanCaseDTO + */ + TestPlanCaseDTO getTestPlanTestCase(@Param("request") QueryTestPlanCaseRequest request); + + /** + * 获取测试计划下的 TestPlanTestCaseID 和 TestCaseName + * @param request planId 不能为空 + * @return List + */ + List getTestPlanTestCaseList(@Param("request") QueryTestPlanCaseRequest request); + } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml index 7b267835c1..a95041bbe4 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml @@ -121,7 +121,9 @@ + + + + + - -