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 241b52ba1b..da8f332003 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
@@ -452,6 +452,9 @@
from test_case
+
+ and test_case.node_id = #{request.nodeId}
+
diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.java
index edbc96ddd8..284e11820f 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.java
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.java
@@ -34,4 +34,6 @@ public interface ExtTestReviewCaseMapper {
List selectIds(@Param("request") QueryCaseReviewRequest request);
List selectTestCaseIds(@Param("request") QueryCaseReviewRequest request);
+
+ List listForMinder(@Param("request") QueryCaseReviewRequest request);
}
diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.xml
index 0c76da8a88..3366ec1cbe 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestReviewCaseMapper.xml
@@ -109,6 +109,10 @@
inner join test_case on test_case_review_test_case.case_id = test_case.id
left join test_case_node on test_case_node.id=test_case.node_id
inner join project on project.id = test_case.project_id
+
+
+
+
@@ -118,9 +122,9 @@
and (test_case.name like CONCAT('%', #{request.name},'%')
- or test_case.num like CONCAT('%', #{request.name},'%')
- or test_case.custom_num like CONCAT('%', #{request.name},'%')
- )
+ or test_case.num like CONCAT('%', #{request.name},'%')
+ or test_case.custom_num like CONCAT('%', #{request.name},'%')
+ )
and test_case.id = #{request.id}
@@ -143,59 +147,43 @@
and test_case.method = #{request.method}
-
-
-
-
-
- and test_case.priority in
-
- #{value}
-
-
-
- and test_case.type in
-
- #{value}
-
-
-
- and test_case.method in
-
- #{value}
-
-
-
- and test_case.review_status in
-
- #{value}
-
-
-
-
-
-
+
-
- order by
-
-
-
-
-
-
- test_case.num ${order.type}, test_case.custom_num ${order.type}
-
-
- test_case.priority ${order.type}
-
-
- test_case_review_test_case.${order.name} ${order.type}
-
-
+
+
+
+
+
+
+
+ and test_case.priority in
+
+ #{value}
+
+
+
+ and test_case.type in
+
+ #{value}
+
+
+
+ and test_case.method in
+
+ #{value}
+
+
+
+ and test_case.review_status in
+
+ #{value}
+
+
+
+
-
+
+
diff --git a/backend/src/main/java/io/metersphere/track/controller/TestCaseController.java b/backend/src/main/java/io/metersphere/track/controller/TestCaseController.java
index 7d858ba60e..81a44f78f6 100644
--- a/backend/src/main/java/io/metersphere/track/controller/TestCaseController.java
+++ b/backend/src/main/java/io/metersphere/track/controller/TestCaseController.java
@@ -62,6 +62,13 @@ public class TestCaseController {
return testCaseService.listTestCase(request);
}
+ @PostMapping("/list")
+ @RequiresPermissions("PROJECT_TRACK_CASE:READ")
+ public List list(@RequestBody QueryTestCaseRequest request) {
+ checkPermissionService.checkProjectOwner(request.getProjectId());
+ return testCaseService.listTestCase(request);
+ }
+
@PostMapping("/list/minder")
public List listDetail(@RequestBody QueryTestCaseRequest request) {
checkPermissionService.checkProjectOwner(request.getProjectId());
@@ -91,11 +98,6 @@ public class TestCaseController {
return testCaseService.recentTestPlans(request, count);
}
- @PostMapping("/list")
- public List getTestCaseByNodeId(@RequestBody List nodeIds) {
- return testCaseService.getTestCaseByNodeId(nodeIds);
- }
-
@PostMapping("/relate/{goPage}/{pageSize}")
public Pager> getTestCaseRelateList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
Page