diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
index bf2152a84c..10f474bf3c 100644
--- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
+++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml
@@ -180,16 +180,10 @@
AND test_plan.id = #{request.id}
-
+
and test_plan.status != 'Archived'
-
- and test_plan.status in
-
- #{value}
-
-
@@ -211,15 +205,14 @@
AND (( test_plan_principal.principal_id =
'${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and
test_plan.status in
-
+
)
or
(test_plan_test_case.executor =
'${@io.metersphere.commons.utils.SessionUtils@getUserId()}' and
test_plan_test_case.status in
-
+
))
- AND test_plan.status != 'Archived'
and test_plan.status in
@@ -326,13 +319,12 @@
SELECT p.name
FROM test_plan tp
INNER JOIN project p ON p.id = tp.project_id
- WHERE tp.id = #{0}
- limit 1;
+ WHERE tp.id = #{0} limit 1;