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
b027b30f
Commit
b027b30f
authored
Nov 15, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作模块初始化修改:查询全部
parent
2ca1f9d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+11
-0
LoginController.java
...ain/java/com/gic/auth/web/controller/LoginController.java
+1
-1
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
b027b30f
...
...
@@ -116,6 +116,17 @@ public class MenuApiServiceImpl implements MenuApiService {
}
@Override
public
ServiceResponse
<
List
<
MenuDTO
>>
getSuperAdminMenuNotTree
(
Integer
enterpriseId
)
{
//查询超级管理员
TabSysUser
tabSysUser
=
userService
.
getUserByEnterpriseId
(
enterpriseId
);
if
(
tabSysUser
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"没有超级管理员,数据错误"
);
}
String
versionCode
=
enterpriseApiService
.
getEnterpriseById
(
enterpriseId
).
getResult
().
getVersionCode
();
return
listUserMenu
(
tabSysUser
.
getUserId
(),
versionCode
);
}
@Override
public
ServiceResponse
<
List
<
MenuDTO
>>
listMenuTree
(
MenuListQO
params
)
{
if
(
params
.
getIsGIC
()
==
null
)
{
params
.
setIsGIC
(
MenuProjectConstants
.
DEFAULT_PROJECT_CODE
);
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/LoginController.java
View file @
b027b30f
...
...
@@ -122,7 +122,7 @@ public class LoginController {
}
//查询全部的操作模块
Map
<
String
,
MenuInfo
>
moduleMap
=
new
HashMap
<>(
16
);
ServiceResponse
<
List
<
MenuDTO
>>
allGicMenu
=
menuApiService
.
getSuperAdmin
GicMenu
(
enterpriseId
);
ServiceResponse
<
List
<
MenuDTO
>>
allGicMenu
=
menuApiService
.
getSuperAdmin
MenuNotTree
(
enterpriseId
);
if
(
allGicMenu
.
isSuccess
())
{
List
<
MenuDTO
>
temp
=
allGicMenu
.
getResult
();
List
<
MenuInfo
>
tempMenuInfoList
=
EntityUtil
.
changeEntityListNew
(
MenuInfo
.
class
,
temp
);
...
...
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