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 5b030e0ca4..5421c85d9b 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 @@ -368,8 +368,12 @@ - - functional_case.id not in ( + + functional_case.id + + not + + in ( select file_association.source_id from file_association where file_association.source_type = 'FUNCTIONAL_CASE' ) @@ -382,20 +386,32 @@ 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 - - - - - - - - - - - - - - + + + + + + + file_metadata.name like CONCAT('%', #{subItem},'%') + + + and file_metadata.`type` like CONCAT('%', #{subItem},'%') + + + + + + + + file_metadata.name = #{item} + + + and file_metadata.`type` = #{item} + + + + + ) )