|
@@ -1,23 +1,11 @@
|
1
|
1
|
package com.ruoyi.system.service.impl;
|
2
|
2
|
|
3
|
|
-import java.util.ArrayList;
|
4
|
|
-import java.util.Arrays;
|
5
|
|
-import java.util.HashSet;
|
6
|
|
-import java.util.Iterator;
|
7
|
|
-import java.util.LinkedList;
|
8
|
|
-import java.util.List;
|
9
|
|
-import java.util.Set;
|
10
|
|
-import java.util.stream.Collectors;
|
11
|
|
-
|
12
|
3
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
13
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
14
|
|
-import org.springframework.stereotype.Service;
|
15
|
4
|
import com.ruoyi.common.constant.Constants;
|
16
|
5
|
import com.ruoyi.common.constant.UserConstants;
|
17
|
6
|
import com.ruoyi.common.core.domain.TreeSelect;
|
18
|
7
|
import com.ruoyi.common.core.domain.entity.SysMenu;
|
19
|
8
|
import com.ruoyi.common.core.domain.entity.SysRole;
|
20
|
|
-import com.ruoyi.common.core.domain.entity.SysUser;
|
21
|
9
|
import com.ruoyi.common.utils.SecurityUtils;
|
22
|
10
|
import com.ruoyi.common.utils.StringUtils;
|
23
|
11
|
import com.ruoyi.system.domain.vo.MetaVo;
|
|
@@ -26,6 +14,11 @@ import com.ruoyi.system.mapper.SysMenuMapper;
|
26
|
14
|
import com.ruoyi.system.mapper.SysRoleMapper;
|
27
|
15
|
import com.ruoyi.system.mapper.SysRoleMenuMapper;
|
28
|
16
|
import com.ruoyi.system.service.ISysMenuService;
|
|
17
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
18
|
+import org.springframework.stereotype.Service;
|
|
19
|
+
|
|
20
|
+import java.util.*;
|
|
21
|
+import java.util.stream.Collectors;
|
29
|
22
|
|
30
|
23
|
/**
|
31
|
24
|
* 菜单 业务层处理
|
|
@@ -65,6 +58,10 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
65
|
58
|
@Override
|
66
|
59
|
public List<SysMenu> selectMenuList(SysMenu menu, Long userId) {
|
67
|
60
|
List<SysMenu> menuList = null;
|
|
61
|
+
|
|
62
|
+ //不做权限过滤录入,只要有菜单管理的权限,就显示所有的菜单即可
|
|
63
|
+ menuList = menuMapper.selectMenuList(menu);
|
|
64
|
+ /*
|
68
|
65
|
// 管理员显示所有菜单信息
|
69
|
66
|
if (SysUser.isAdmin(userId)) {
|
70
|
67
|
menuList = menuMapper.selectMenuList(menu);
|
|
@@ -72,6 +69,8 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
72
|
69
|
menu.getParams().put("userId" , userId);
|
73
|
70
|
menuList = menuMapper.selectMenuListByUserId(menu);
|
74
|
71
|
}
|
|
72
|
+
|
|
73
|
+ */
|
75
|
74
|
return menuList;
|
76
|
75
|
}
|
77
|
76
|
|