Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
26ffac77
Commit
26ffac77
authored
Dec 31, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取用户没有权限的操作项接口修改
parent
e5c178b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+3
-3
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
26ffac77
...
...
@@ -940,12 +940,12 @@ public class MenuApiServiceImpl implements MenuApiService {
}
List
<
MenuDTO
>
resultList
=
new
ArrayList
<>();
Map
<
Integer
,
Object
>
operationItemMap
=
new
HashMap
<>(
16
);
Map
<
String
,
Object
>
operationItemMap
=
new
HashMap
<>(
16
);
//查询用户拥有的操作项
List
<
TabSysMenuItem
>
menuItemList
=
menuItemService
.
listMenuItemByMenuId
(
authItemIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
menuItemList
))
{
for
(
TabSysMenuItem
menuItem
:
menuItemList
)
{
operationItemMap
.
put
(
menuItem
.
getItemId
(),
"1"
);
operationItemMap
.
put
(
menuItem
.
getItemId
()
.
toString
()
,
"1"
);
}
}
//获取配置在权限项内的操作项数据
...
...
@@ -954,7 +954,7 @@ public class MenuApiServiceImpl implements MenuApiService {
//当时超级管理员的时候,operationItemMap是没有值的,因此会一直有效。
if
(
CollectionUtils
.
isNotEmpty
(
operationItemListOfAuthItem
))
{
for
(
MenuDTO
menuDTO
:
operationItemListOfAuthItem
)
{
if
(!
operationItemMap
.
containsKey
(
menuDTO
.
getMenuId
())
||
StringUtils
.
isBlank
(
versionCode
)
if
(!
operationItemMap
.
containsKey
(
menuDTO
.
getMenuId
()
.
toString
()
)
||
StringUtils
.
isBlank
(
versionCode
)
||
!
menuDTO
.
getMenuVersion
().
contains
(
"_"
+
versionCode
+
"_"
))
{
//如果不存在,或者操作项的版本不对
//则是没有权限的操作项
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment