diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml index 23e2570a06..0abf25a781 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionMapper.xml @@ -802,7 +802,8 @@ and - api_definition.id not in (SELECT api_definition_id FROM api_test_case) + api_definition.id not in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` + != 'Trash') and api_definition.id not in @@ -815,7 +816,8 @@ and ( - api_definition.id in (SELECT api_definition_id FROM api_test_case) + api_definition.id in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != + 'Trash') or api_definition.id in @@ -828,11 +830,11 @@ and api_definition.id not in - (SELECT api_definition_id FROM api_test_case) + (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash') and api_definition.id in - (SELECT api_definition_id FROM api_test_case) + (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash') @@ -916,7 +918,8 @@ and - api_definition.id not in (SELECT api_definition_id FROM api_test_case) + api_definition.id not in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` + != 'Trash') and api_definition.id not in @@ -929,7 +932,8 @@ and ( - api_definition.id in (SELECT api_definition_id FROM api_test_case) + api_definition.id in (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != + 'Trash') or api_definition.id in @@ -942,11 +946,11 @@ and api_definition.id not in - (SELECT api_definition_id FROM api_test_case) + (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash') and api_definition.id in - (SELECT api_definition_id FROM api_test_case) + (SELECT api_definition_id FROM api_test_case WHERE `status` is null or `status` != 'Trash')