Commit 669ce9dd authored by fangxinjiang's avatar fangxinjiang

数字

parent b20ae0d1
......@@ -62,6 +62,17 @@ public class MenuController {
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));
}
/**
* 返回当前用户的树形菜单集合
......
......@@ -78,4 +78,6 @@ public interface SysMenuService extends IService<SysMenu> {
void clearMenuCache();
IPage<List<SysMenu>> getMenuPage(Page page, SysMenu sysMenu);
List<SysMenu> listOfPageMenu(SysMenu sysMenu);
}
......@@ -148,11 +148,29 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
}
/**
* 菜单分页数据
* @author fxj
* @param page
* @param sysMenu
* @return
*/
@Override
public IPage<List<SysMenu>> getMenuPage(Page page, SysMenu sysMenu) {
sysMenu.setDelFlag(CommonConstants.STATUS_DEL);
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment