🎨 Improving structure / format of the code.代码格式化

This commit is contained in:
lishangbu 2020-12-28 23:36:35 +08:00
parent 28cdd9c014
commit ab0e0fb8c1
2 changed files with 3 additions and 5 deletions

View File

@ -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