mirror of https://gitee.com/maxjhandsome/pig
🎨 Improving structure / format of the code.代码格式化
This commit is contained in:
parent
28cdd9c014
commit
ab0e0fb8c1
|
@ -98,8 +98,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||
@Override
|
||||
public List<MenuTree> treeMenu(boolean lazy, Integer parentId) {
|
||||
if (!lazy) {
|
||||
return buildTree(
|
||||
baseMapper.selectList(Wrappers.<SysMenu>lambdaQuery().orderByAsc(SysMenu::getSort)),
|
||||
return buildTree(baseMapper.selectList(Wrappers.<SysMenu>lambdaQuery().orderByAsc(SysMenu::getSort)),
|
||||
CommonConstants.MENU_TREE_ROOT_ID);
|
||||
}
|
||||
|
||||
|
@ -124,7 +123,6 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||
return TreeUtils.build(menuTreeList, parent);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过sysMenu创建树形节点
|
||||
* @param menus
|
||||
|
|
Loading…
Reference in New Issue