From 92a1a1e5b8fa53e908d1e0a398acc524b8798d0e Mon Sep 17 00:00:00 2001 From: liusuyi <1951119284@qq.com> Date: 星期五, 26 七月 2024 12:00:27 +0800 Subject: [PATCH] 修改:群聊单聊会话以监听事件方式进行websocket转发 --- 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