Преглед на файлове

1、去掉邮箱唯一验证
2、去掉菜单权限过滤

csg6 преди 5 месеца
родител
ревизия
78a43c3c5b

+ 11 - 12
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java

@@ -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
 

+ 4 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@@ -202,6 +202,10 @@ public class SysUserServiceImpl implements ISysUserService {
202 202
      */
203 203
     @Override
204 204
     public boolean checkEmailUnique(SysUser user) {
205
+        //TODO 去掉邮箱的唯一验证,因为甲方工业互联网平台存在公用账号,几个公用账号绑定的邮箱是同一个,导致这些账号修改岗位和配置角色时会报错。
206
+        if(true){
207
+            return UserConstants.UNIQUE;
208
+        }
205 209
         Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId();
206 210
         SysUser info = userMapper.checkEmailUnique(user.getEmail());
207 211
         if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) {