From e29ac67a9140d261a06b8d1febc4d5b054e56a51 Mon Sep 17 00:00:00 2001
From: wenjinbo <599483010@qq.com>
Date: Mon, 29 Sep 2025 09:35:03 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9F=A5=E8=AF=86=E5=BA=93=E6=96=87?=
=?UTF-8?q?=E6=A1=A3=E7=AE=A1=E7=90=86=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../brichat/config/FeignConfiguration.java | 4 +-
.../mapper/opengauss/TDatasetFilesMapper.xml | 41 ++++++++++++-------
2 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/chat-server/src/main/java/com/bjtds/brichat/config/FeignConfiguration.java b/chat-server/src/main/java/com/bjtds/brichat/config/FeignConfiguration.java
index 55bee2d..92d4c59 100644
--- a/chat-server/src/main/java/com/bjtds/brichat/config/FeignConfiguration.java
+++ b/chat-server/src/main/java/com/bjtds/brichat/config/FeignConfiguration.java
@@ -13,7 +13,7 @@ import java.util.HashSet;
/**
* fegin 配置文件
- *
+ *
*
* 2019年3月29日
*/
@@ -62,7 +62,7 @@ public class FeignConfiguration extends FeignSudoUtil implements RequestIntercep
if (!existHeaders.contains("__Permission__")) {
template.header("__Permission__", "*:*:*");
}
- // } for ZB
+ // } for ZB
}
diff --git a/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/TDatasetFilesMapper.xml b/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/TDatasetFilesMapper.xml
index 0661c87..1f8e0e0 100644
--- a/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/TDatasetFilesMapper.xml
+++ b/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/TDatasetFilesMapper.xml
@@ -37,24 +37,30 @@
FROM t_dataset_files
WHERE dify_dataset_id = #{difyDatasetId}
AND is_deleted = false
-
- AND parent_id = #{parentId}
-
-
- AND parent_id IS NULL
-
-
- AND name ILIKE CONCAT('%', #{fileName}, '%')
-
+
+
+
+ AND name ILIKE CONCAT('%', #{fileName}, '%')
+
+
+
+
+ AND parent_id = #{parentId}
+
+
+ AND parent_id IS NULL
+
+
+
- ORDER BY
- CASE WHEN type = 'folder' THEN 0 ELSE 1 END,
- ${orderBy} ${orderDirection}
+ ORDER BY
+ CASE WHEN type = 'folder' THEN 0 ELSE 1 END,
+ ${orderBy} ${orderDirection}
- ORDER BY
- CASE WHEN type = 'folder' THEN 0 ELSE 1 END,
- name ASC
+ ORDER BY
+ CASE WHEN type = 'folder' THEN 0 ELSE 1 END,
+ name ASC
LIMIT #{limit}
@@ -64,6 +70,9 @@
+
+
+
+
+