From a327fb5bece99809958c7921fcab67cdc02fae64 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期四, 22 十月 2026 18:50:41 +0800
Subject: [PATCH] fix(sql): 权限对齐 SQL 改为按 path 定位父菜单(兼容不同环境菜单 id),并注明执行前检查 id 占用

---
 yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileService.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileService.java b/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileService.java
index 421bbe8..7453a52 100644
--- a/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileService.java
+++ b/yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileService.java
@@ -12,7 +12,7 @@
 /**
  * 鏂囦欢 Service 鎺ュ彛
  *
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
  */
 public interface FileService {
 
@@ -86,4 +86,13 @@
      */
     byte[] getFileContent(Long configId, String path) throws Exception;
 
+    /**
+     * 鑾峰緱鏂囦欢
+     *
+     * @param configId 閰嶇疆缂栧彿
+     * @param path     鏂囦欢璺緞
+     * @return 鏂囦欢
+     */
+    FileDO getFileByConfigIdAndPath(Long configId, String path);
+
 }

--
Gitblit v1.9.3