| | |
| | | public class MenuService extends BaseServiceImpl<MenuMapper, Menu> { |
| | | |
| | | private final RoleMenuRelationService roleMenuRelationService; |
| | | private MenuMapper menuMapper; |
| | | |
| | | /** |
| | | * 获取角色下的菜单 |
| | |
| | | if (CollectionUtil.isEmpty(menuIdList)) { |
| | | return null; |
| | | } |
| | | return listByIds(menuIdList); |
| | | |
| | | return menuMapper.listMenuById(menuIdList); |
| | | } |
| | | |
| | | public boolean addMenu(MenuParam param) { |
| | |
| | | .filter(menu -> menu.getPid().equals(0L)) |
| | | .map(menu -> covertMenuNode(menu, list)).collect(Collectors.toList()); |
| | | } |
| | | |
| | | private MenuMapper menuMapper; |
| | | |
| | | public boolean delMenu(Long menuId) { |
| | | Menu one = getById(menuId); |