From 9f0b76de38b1d73c9827ec378130603d2a21aea2 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 08 七月 2024 18:07:36 +0800
Subject: [PATCH] 登录递归查询子级部门

---
 src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java b/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java
index c530c64..7807bba 100644
--- a/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java
+++ b/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java
@@ -1,6 +1,7 @@
 package com.mindskip.xzs.repository;
 
 import com.mindskip.xzs.domain.Department;
+import com.mindskip.xzs.domain.vo.CascaderDataVO;
 import com.mindskip.xzs.viewmodel.admin.department.DepartmentResponseVM;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
@@ -31,4 +32,19 @@
      * @return
      */
     Integer countByAdminId(@Param("userId") Integer userId, @Param("id") Integer id);
+
+    /**
+     * 鎵�鏈夐儴闂�
+     *
+     * @return
+     */
+    List<CascaderDataVO> list();
+
+    /**
+     * 鑾峰彇杩欎簺閮ㄩ棬鎷ユ湁鐨勫瓙閮ㄩ棬
+     *
+     * @param deptIds
+     * @return
+     */
+    List<Integer> getChilds(@Param("deptIds") List<Integer> deptIds);
 }

--
Gitblit v1.8.0