From 47034570bffe65bfe1ab642442f8261616ed42f8 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Thu, 26 Sep 2024 14:10:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=85=B3=E8=81=94=E7=9A=84=E9=99=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=B8=A6=E5=90=8E=E7=BC=80=E7=9A=84=E5=85=B3=E9=94=AE=E5=AD=97?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046954 --user=陈建星 【高级搜索】用例列表使用关联附件条件筛选,无法比较关联文件,只能比较本地上传的文件 https://www.tapd.cn/55049933/s/1586779 --- .../mapper/ExtFunctionalCaseMapper.xml | 48 ++++++++++++------- 1 file changed, 32 insertions(+), 16 deletions(-) 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} + + + + + ) )