From 0766c42639d0e9b12d8dc2f93589b4713ced57a6 Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Fri, 27 Dec 2024 07:19:36 +0000
Subject: [PATCH] 修改

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/DeptRepository.java |   10 ++++++++++
 1 files changed, 10 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 9858322..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
@@ -35,6 +35,13 @@
      * @return /
      */
     List<Dept> findByPid(Long id);
+    
+    /**
+     * 根据 ID 查询
+     * @param id
+     * @return /
+     */
+	List<Dept> findByIdIn(List<Long> ids);
 
     /**
      * 获取顶级部门
@@ -66,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