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 147bf91dbc..5b3838279b 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 @@ -39,4 +39,18 @@ public interface ExtTestPlanTestCaseMapper { List listTestCaseByProjectIds(@Param("ids") List ids); TestPlanCaseDTO get(String testPlanTestCaseId); + /** + * 获取完整的测试计划下用例的详细信息 + * @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 c3025bea29..229381d77e 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 @@ + + + + +