From 6a5a4dc5029bccdc6874acf61b2ac38ff9bbcdc7 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 27 Oct 2026 03:45:30 +0000
Subject: [PATCH] 文本修正;常量替换;

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java
index 6522eca..74f09c3 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java
@@ -73,4 +73,7 @@
     @Modifying
     @Query(value = " update sys_dept set sub_count = ?1 where dept_id = ?2 ",nativeQuery = true)
     void updateSubCntById(Integer count, Long id);
+
+    @Query(value = "select pid from sys_dept where dept_id = ?1",nativeQuery = true)
+    Long findPidIdByDeptId(Long deptId);
 }
\ No newline at end of file

--
Gitblit v1.9.3