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..147bf91dbc 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,5 @@ public interface ExtTestPlanTestCaseMapper { */ List listTestCaseByProjectIds(@Param("ids") List ids); + TestPlanCaseDTO get(String testPlanTestCaseId); } 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..c3025bea29 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 @@ -307,6 +307,16 @@ + + + update test_plan_test_case diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java index 04abe860b0..e5d306bf4f 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java @@ -129,10 +129,8 @@ public class TestPlanTestCaseService { request.setExecutor(user.getId()); } - public TestPlanCaseDTO get(String caseId) { - QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest(); - request.setId(caseId); - return extTestPlanTestCaseMapper.list(request).get(0); + public TestPlanCaseDTO get(String testplanTestCaseId) { + return extTestPlanTestCaseMapper.get(testplanTestCaseId); } public void deleteTestCaseBath(TestPlanCaseBatchRequest request) { diff --git a/frontend/src/business/components/track/home/components/TestCaseSideList.vue b/frontend/src/business/components/track/home/components/TestCaseSideList.vue index fa51914573..26f3a97663 100644 --- a/frontend/src/business/components/track/home/components/TestCaseSideList.vue +++ b/frontend/src/business/components/track/home/components/TestCaseSideList.vue @@ -85,7 +85,7 @@ }); }, editTestCase(row, event, column) { - this.$router.push('/track/plan/view/edit/' + row.caseId) + this.$router.push('/track/plan/view/edit/' + row.id) } } }