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
83ac04ac
Commit
83ac04ac
authored
Sep 19, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限菜单查询接口:sql语法错误修复
parent
c7f0656c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
TabSysMenuMapper.xml
...th-service/src/main/resources/mapper/TabSysMenuMapper.xml
+1
-1
MenuController.java
...main/java/com/gic/auth/web/controller/MenuController.java
+5
-0
No files found.
gic-platform-auth-service/src/main/resources/mapper/TabSysMenuMapper.xml
View file @
83ac04ac
...
...
@@ -276,7 +276,7 @@
and menu_type != 2
</if>
<if
test=
"level != null"
>
level = #{level}
and
level = #{level}
</if>
order by level,sort
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/MenuController.java
View file @
83ac04ac
...
...
@@ -8,6 +8,8 @@ import java.util.Map;
import
com.gic.auth.constant.SignConstants
;
import
com.gic.auth.qo.AuthItemSaveQO
;
import
org.apache.dubbo.rpc.RpcContext
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -29,6 +31,8 @@ import com.gic.enterprise.utils.UserDetailUtils;
@RestController
public
class
MenuController
{
private
final
static
Logger
LOGGER
=
LogManager
.
getLogger
(
MenuController
.
class
);
@Autowired
private
MenuApiService
menuApiService
;
...
...
@@ -106,6 +110,7 @@ public class MenuController {
*/
@RequestMapping
(
"/list-menu-tree"
)
public
RestResponse
listMenuTree
(
MenuListQO
params
)
{
LOGGER
.
info
(
"菜单列表查询参数:{}"
,
JSON
.
toJSONString
(
params
));
ServiceResponse
<
List
<
MenuDTO
>>
result
=
menuApiService
.
listMenuTree
(
params
);
if
(
result
.
isSuccess
())
{
return
RestResponse
.
success
(
changeListToTree
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
result
.
getResult
()));
...
...
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