diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml
index be1441dcfb..108ced7124 100644
--- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml
+++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml
@@ -42,17 +42,7 @@
FROM
case_review left join case_review_module on case_review.module_id = case_review_module.id
where case_review.project_id = #{request.projectId}
-
-
- AND
-
-
- and (
-
- )
-
-
- 1 = 1
+
- case_review.module_id in
+ and case_review.module_id in
#{moduleId}
-
-
-
- (
+ and (
case_review.name like concat('%', #{request.keyword},'%')
or case_review.num like concat('%', #{request.keyword},'%')
)
-
-
-
- case_review.create_user = #{request.createByMe}
-
-
-
+ and case_review.create_user = #{request.createByMe}
- case_review.id in
+ and case_review.id in
(
select case_review_user.review_id from case_review_user where case_review_user.user_id = #{request.reviewByMe}
)
-
-
-
+
+
+ AND
+
+
+ and (
+
+ )
+
+
+
+
+
@@ -120,45 +101,48 @@
+ 1=1
+
- case_review.module_id in
+ and case_review.module_id in
#{moduleId}
-
-
-
- (
+ and (
case_review.name like concat('%', #{request.keyword},'%')
or case_review.num like concat('%', #{request.keyword},'%')
)
-
-
-
- case_review.create_user = #{request.createByMe}
-
-
-
+ and case_review.create_user = #{request.createByMe}
- case_review.id in
+ and case_review.id in
(
select case_review_user.review_id from case_review_user where case_review_user.user_id = #{request.reviewByMe}
)
-
-
-
+
+
+ AND
+
+
+ and (
+
+ )
+
+
+
+
+
@@ -166,6 +150,7 @@
+ 1=1
@@ -185,37 +170,25 @@
- case_review.status in
+ and case_review.status in
-
-
-
- case_review.review_pass_rule in
+ and case_review.review_pass_rule in
-
-
-
- case_review.create_user in
+ and case_review.create_user in
-
-
-
- case_review.id in (
+ and case_review.id in (
select case_review_user.review_id from case_review_user where case_review_user.user_id in
in
#{value}
)
-
-
-
@@ -246,7 +219,7 @@
- case_review.status
+ case_review.description
@@ -256,7 +229,7 @@
- case_review.status
+ case_review.review_pass_rule
@@ -266,7 +239,7 @@
- case_review.status
+ case_review.create_user
@@ -457,17 +430,7 @@
SELECT module_id AS moduleId, count(id) AS dataCount
FROM case_review
WHERE project_id = #{request.projectId}
-
-
- AND
-
-
- AND (
-
- )
-
-
- 1 = 1
+
GROUP BY moduleId
@@ -476,17 +439,7 @@
SELECT count(id)
FROM case_review
WHERE project_id = #{request.projectId}
-
-
- AND
-
-
- and (
-
- )
-
-
- 1 = 1
+