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 7ecc857ae1..0b721ff31e 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 @@ -1035,7 +1035,7 @@ JOIN project_version ON tmp.project_id = project_version.project_id AND tmp.version_id = project_version.id AND project_version.latest = TRUE - WHERE ref_id = #{refId,jdbcType=VARCHAR} + WHERE ref_id = #{refId,jdbcType=VARCHAR} and tmp.status != 'Trash' LIMIT 1 ) UNION ALL