Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
25393e78
Commit
25393e78
authored
Jan 10, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单角色 调优
parent
dbea4373
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
MenuController.java
...u/cloud/plus/v1/yifu/admin/controller/MenuController.java
+1
-0
RoleController.java
...u/cloud/plus/v1/yifu/admin/controller/RoleController.java
+1
-0
SysMenuServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysMenuServiceImpl.java
+3
-0
SysRoleServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
+3
-0
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/MenuController.java
View file @
25393e78
...
...
@@ -62,6 +62,7 @@ public class MenuController {
*/
@GetMapping
(
"/page"
)
public
R
<
IPage
<
List
<
SysMenu
>>>
getMenuPage
(
Page
page
,
SysMenu
sysMenu
)
{
sysMenu
.
setClientId
(
ClientNameConstants
.
CLIENT_MVP
);
return
R
.
ok
(
sysMenuService
.
getMenuPage
(
page
,
sysMenu
));
}
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/RoleController.java
View file @
25393e78
...
...
@@ -129,6 +129,7 @@ public class RoleController {
*/
@GetMapping
(
"/page"
)
public
R
<
IPage
<
SysRole
>>
getRolePage
(
Page
page
,
SysRole
sysRole
)
{
sysRole
.
setClientId
(
ClientNameConstants
.
CLIENT_MVP
);
return
R
.
ok
(
sysRoleService
.
getSysRoleByPage
(
page
,
sysRole
));
}
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysMenuServiceImpl.java
View file @
25393e78
...
...
@@ -218,6 +218,9 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
if
(
StrUtil
.
isNotBlank
(
sysMenu
.
getDelFlag
())){
wrapper
.
eq
(
SysMenu:
:
getDelFlag
,
sysMenu
.
getDelFlag
());
}
if
(
StrUtil
.
isNotBlank
(
sysMenu
.
getClientId
())){
wrapper
.
eq
(
SysMenu:
:
getClientId
,
sysMenu
.
getClientId
());
}
return
wrapper
;
}
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
View file @
25393e78
...
...
@@ -167,6 +167,9 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
if
(
StrUtil
.
isNotBlank
(
sysRole
.
getRoleName
())){
wrapper
.
likeRight
(
SysRole:
:
getRoleName
,
sysRole
.
getRoleName
());
}
if
(
Common
.
isNotNull
(
sysRole
.
getClientId
())){
wrapper
.
eq
(
SysRole:
:
getClientId
,
sysRole
.
getClientId
());
}
wrapper
.
orderByDesc
(
BaseEntity:
:
getCreateTime
);
return
wrapper
;
}
...
...
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