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
669ce9dd
Commit
669ce9dd
authored
Jun 09, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数字
parent
b20ae0d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
MenuController.java
...u.cloud.plus.v1/yifu/admin/controller/MenuController.java
+11
-0
SysMenuService.java
...yifu.cloud.plus.v1/yifu/admin/service/SysMenuService.java
+2
-0
SysMenuServiceImpl.java
...d.plus.v1/yifu/admin/service/impl/SysMenuServiceImpl.java
+18
-0
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/controller/MenuController.java
View file @
669ce9dd
...
@@ -62,6 +62,17 @@ public class MenuController {
...
@@ -62,6 +62,17 @@ public class MenuController {
return
R
.
ok
(
sysMenuService
.
getMenuPage
(
page
,
sysMenu
));
return
R
.
ok
(
sysMenuService
.
getMenuPage
(
page
,
sysMenu
));
}
}
/**
* 分页查询用户
* @param sysMenu 参数集
* @param sysMenu 查询参数列表
* @return 用户集合
*/
@GetMapping
(
"/listOfPageMenu"
)
public
R
<
List
<
SysMenu
>>
listOfPageMenu
(
SysMenu
sysMenu
)
{
return
R
.
ok
(
sysMenuService
.
listOfPageMenu
(
sysMenu
));
}
/**
/**
* 返回当前用户的树形菜单集合
* 返回当前用户的树形菜单集合
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/service/SysMenuService.java
View file @
669ce9dd
...
@@ -78,4 +78,6 @@ public interface SysMenuService extends IService<SysMenu> {
...
@@ -78,4 +78,6 @@ public interface SysMenuService extends IService<SysMenu> {
void
clearMenuCache
();
void
clearMenuCache
();
IPage
<
List
<
SysMenu
>>
getMenuPage
(
Page
page
,
SysMenu
sysMenu
);
IPage
<
List
<
SysMenu
>>
getMenuPage
(
Page
page
,
SysMenu
sysMenu
);
List
<
SysMenu
>
listOfPageMenu
(
SysMenu
sysMenu
);
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/service/impl/SysMenuServiceImpl.java
View file @
669ce9dd
...
@@ -148,11 +148,29 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
...
@@ -148,11 +148,29 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
}
}
/**
* 菜单分页数据
* @author fxj
* @param page
* @param sysMenu
* @return
*/
@Override
@Override
public
IPage
<
List
<
SysMenu
>>
getMenuPage
(
Page
page
,
SysMenu
sysMenu
)
{
public
IPage
<
List
<
SysMenu
>>
getMenuPage
(
Page
page
,
SysMenu
sysMenu
)
{
sysMenu
.
setDelFlag
(
CommonConstants
.
STATUS_DEL
);
sysMenu
.
setDelFlag
(
CommonConstants
.
STATUS_DEL
);
return
baseMapper
.
selectPage
(
page
,
buildQueryWrapper
(
sysMenu
));
return
baseMapper
.
selectPage
(
page
,
buildQueryWrapper
(
sysMenu
));
}
}
/**
* 列表菜单数据
* @author fxj
* @param sysMenu
* @return
*/
@Override
public
List
<
SysMenu
>
listOfPageMenu
(
SysMenu
sysMenu
)
{
sysMenu
.
setDelFlag
(
CommonConstants
.
STATUS_DEL
);
return
baseMapper
.
selectList
(
buildQueryWrapper
(
sysMenu
));
}
/**
/**
* 构建查询的 wrapper
* 构建查询的 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