diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml index 1afc4c85b6..5b030e0ca4 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml @@ -339,6 +339,17 @@ + + + and + + + or + + + + + @@ -355,6 +366,42 @@ + + + + functional_case.id not in ( + select file_association.source_id from file_association where file_association.source_type = 'FUNCTIONAL_CASE' + ) + + + ( + functional_case.id + + not + + in ( + select file_association.source_id from file_association join file_metadata on file_association.file_id = file_metadata.id + and file_association.source_type = 'FUNCTIONAL_CASE' and + + + + + + + + + + + + + + + ) + ) + + + +