diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
index 824f4cd2a1..ebc58e1b41 100644
--- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
+++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
@@ -233,7 +233,7 @@
- and test_case.status != 'Trash'
+ and test_plan_test_case.is_del = 0
@@ -434,8 +434,7 @@
@@ -524,7 +523,7 @@
select tptc.id, tptc.status
from test_plan_test_case tptc
inner join test_case tc
- on tc.id = tptc.case_id and tc.status != 'Trash'
+ on tc.id = tptc.case_id and tptc.is_del = 0
where tptc.plan_id = #{planId};