| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashSet; |
| | | import java.util.Iterator; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.constant.Constants; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMenuMapper; |
| | | import com.ruoyi.system.service.sys.ISysMenuService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 菜单 业务层处理 |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description selectMenuListByDeptId |
| | | * @param deptId |
| | | * @return List<SysMenu> |
| | | * @author jqs34 |
| | | * @date 2023/6/18 19:13 |
| | | */ |
| | | @Override |
| | | public List<Long> selectMenuListByDeptId(Long deptId){ |
| | | return menuMapper.selectMenuListByDeptId(deptId, true); |
| | | } |
| | | |
| | | /** |
| | | * @description selectMenuListByDeptId |
| | | * @param deptUserId |
| | | * @return List<SysMenu> |
| | | * @author jqs34 |
| | | * @date 2023/6/18 19:13 |
| | | */ |
| | | public List<Long> selectMenuListByDeptUserId(Long deptUserId){ |
| | | return menuMapper.selectMenuListByDeptUserId(deptUserId, true); |
| | | } |
| | | |
| | | /** |
| | | * 构建前端路由所需要的菜单 |
| | | * |
| | | * @param menus 菜单列表 |