From 9caa82674793eb3ce6b9cfc0dd20d931bcd25e0c Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期二, 28 五月 2024 16:18:54 +0800
Subject: [PATCH] 兴趣点查询加入自定义权限修改提交

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
index 56ad9ae..8ddf882 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java
@@ -450,6 +450,21 @@
         return returnList;
     }
 
+    @Override
+    public List<Long> selectDeptIdBySubAndUserId(Long deptId, String usersId) {
+        List<Long> deptIdList = new ArrayList();
+        //鏈骇鍙婁笅灞為儴闂�
+        List<Long> ownAndSubDeptIdList = deptMapper.selectDeptIdBySub(deptId);
+        //鑷畾涔�
+        List<Long> roleDeptIdList = deptMapper.selectRoleDeptIdByUsersId(usersId);
+        //鍘婚噸
+        Set<Long> deptIdSet = new HashSet();
+        deptIdSet.addAll(ownAndSubDeptIdList);
+        deptIdSet.addAll(roleDeptIdList);
+        deptIdList.addAll(deptIdSet);
+        return deptIdList;
+    }
+
     private void recursionFnDeptUserTree(List<DeptUserTree> list, DeptUserTree t)
     {
         // 寰楀埌瀛愯妭鐐瑰垪琛�

--
Gitblit v1.9.3