diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java index 9c15ab07aa..9635eb28ef 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.java @@ -15,7 +15,5 @@ public interface ExtTestCaseMapper { List getTestCaseNames(@Param("request") QueryTestCaseRequest request); - List getTestPlanTestCases(@Param("request") QueryTestPlanCaseRequest request); - List list(@Param("request") QueryTestCaseRequest request); } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml index 0d4b45e0b5..bda99d648f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestCaseMapper.xml @@ -20,33 +20,8 @@ ORDER BY test_case.update_time DESC - - - + + \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/controller/request/OrderRequest.java b/backend/src/main/java/io/metersphere/controller/request/OrderRequest.java index 3a35eab451..c22fb75b79 100644 --- a/backend/src/main/java/io/metersphere/controller/request/OrderRequest.java +++ b/backend/src/main/java/io/metersphere/controller/request/OrderRequest.java @@ -5,5 +5,5 @@ import lombok.Data; @Data public class OrderRequest { private String name; - private String value; + private String type; } diff --git a/backend/src/main/java/io/metersphere/controller/request/testplancase/QueryTestPlanCaseRequest.java b/backend/src/main/java/io/metersphere/controller/request/testplancase/QueryTestPlanCaseRequest.java index 5f49ca9266..8be81d9827 100644 --- a/backend/src/main/java/io/metersphere/controller/request/testplancase/QueryTestPlanCaseRequest.java +++ b/backend/src/main/java/io/metersphere/controller/request/testplancase/QueryTestPlanCaseRequest.java @@ -5,6 +5,7 @@ import io.metersphere.controller.request.OrderRequest; import lombok.Data; import java.util.List; +import java.util.Map; @Data public class QueryTestPlanCaseRequest extends TestPlanTestCase { @@ -13,6 +14,8 @@ public class QueryTestPlanCaseRequest extends TestPlanTestCase { private List orders; + private Map> filters; + private String workspaceId; private String name; diff --git a/backend/src/main/java/io/metersphere/service/TestCaseReportService.java b/backend/src/main/java/io/metersphere/service/TestCaseReportService.java index 51e5865a79..4699151c33 100644 --- a/backend/src/main/java/io/metersphere/service/TestCaseReportService.java +++ b/backend/src/main/java/io/metersphere/service/TestCaseReportService.java @@ -112,7 +112,7 @@ public class TestCaseReportService { QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest(); request.setPlanId(planId); - List testPlanTestCases = extTestCaseMapper.getTestPlanTestCases(request); + List testPlanTestCases = extTestPlanTestCaseMapper.list(request); Map moduleResultMap = new HashMap<>(); diff --git a/backend/src/main/java/io/metersphere/service/TestPlanTestCaseService.java b/backend/src/main/java/io/metersphere/service/TestPlanTestCaseService.java index 5814a0cd5b..8f5ab4e2eb 100644 --- a/backend/src/main/java/io/metersphere/service/TestPlanTestCaseService.java +++ b/backend/src/main/java/io/metersphere/service/TestPlanTestCaseService.java @@ -4,6 +4,7 @@ import io.metersphere.base.domain.TestPlanTestCase; import io.metersphere.base.domain.TestPlanTestCaseExample; import io.metersphere.base.mapper.TestPlanTestCaseMapper; import io.metersphere.base.mapper.ext.ExtTestCaseMapper; +import io.metersphere.base.mapper.ext.ExtTestPlanTestCaseMapper; import io.metersphere.commons.constants.TestPlanTestCaseStatus; import io.metersphere.commons.utils.BeanUtils; import io.metersphere.controller.request.testcase.TestPlanCaseBatchRequest; @@ -24,10 +25,10 @@ public class TestPlanTestCaseService { TestPlanTestCaseMapper testPlanTestCaseMapper; @Resource - ExtTestCaseMapper extTestCaseMapper; + ExtTestPlanTestCaseMapper extTestPlanTestCaseMapper; public List getTestPlanCases(QueryTestPlanCaseRequest request) { - return extTestCaseMapper.getTestPlanTestCases(request); + return extTestPlanTestCaseMapper.list(request); } public void editTestCase(TestPlanTestCase testPlanTestCase) { diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue index 433e9e3643..2c8955dae2 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue @@ -22,6 +22,8 @@ @@ -37,7 +39,7 @@