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