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
cfab6657
Commit
cfab6657
authored
Sep 28, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询所有的菜单数据接口修改:加上操作项
parent
0b6bfb83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
MenuListQO.java
...rm-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
+10
-0
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+4
-1
TabSysMenuMapper.xml
...th-service/src/main/resources/mapper/TabSysMenuMapper.xml
+7
-1
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/qo/MenuListQO.java
View file @
cfab6657
...
...
@@ -23,6 +23,7 @@ public class MenuListQO extends PageQO{
* 0:页面 1:权限项 2:操作项
*/
private
Integer
menuType
;
private
List
<
Integer
>
menuTypeList
;
/**
* 层级
*/
...
...
@@ -136,4 +137,13 @@ public class MenuListQO extends PageQO{
this
.
platformType
=
platformType
;
return
this
;
}
public
List
<
Integer
>
getMenuTypeList
()
{
return
menuTypeList
;
}
public
MenuListQO
setMenuTypeList
(
List
<
Integer
>
menuTypeList
)
{
this
.
menuTypeList
=
menuTypeList
;
return
this
;
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
cfab6657
...
...
@@ -239,7 +239,10 @@ public class MenuApiServiceImpl implements MenuApiService {
//超级管理员
MenuListQO
params
=
new
MenuListQO
();
//查询gic的菜单
params
.
setMenuType
(
MenuTypeEnum
.
PAGE
.
getCode
());
List
<
Integer
>
menuTypeList
=
new
ArrayList
<>(
2
);
menuTypeList
.
add
(
MenuTypeEnum
.
PAGE
.
getCode
());
menuTypeList
.
add
(
MenuTypeEnum
.
OPERATION
.
getCode
());
params
.
setMenuTypeList
(
menuTypeList
);
List
<
MenuDTO
>
result
=
EntityUtil
.
changeEntityListNew
(
MenuDTO
.
class
,
this
.
menuService
.
listMenu
(
params
));
return
ServiceResponse
.
success
(
result
);
}
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysMenuMapper.xml
View file @
cfab6657
...
...
@@ -320,7 +320,7 @@
<if
test=
"menuType != null"
>
and menu_type = #{menuType}
</if>
<if
test=
"menuType == null"
>
<if
test=
"menuType == null
and menuTypeList == null
"
>
and menu_type != 2
</if>
<if
test=
"level != null"
>
...
...
@@ -341,6 +341,12 @@
#{item}
</foreach>
</if>
<if
test=
"menuTypeList != null and menuTypeList.size() > 0"
>
and menu_type in
<foreach
close=
")"
collection=
"menuTypeList"
index=
"index"
item=
"item"
open=
"("
separator=
","
>
#{item}
</foreach>
</if>
order by level,sort
</select>
...
...
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