Commit c9523adb by 陶光胜

菜单接口

parent 1a5dc491
......@@ -39,12 +39,13 @@ public class MenuApiServiceImpl implements MenuApiService {
}
private List<MenuDTO> treeMenu(List<TabSysMenu> menuList, int level, int parentId){
List<MenuDTO> list = new ArrayList<>();
List<MenuDTO> list = null;
if(level < 5){
for(TabSysMenu menu : menuList){
if(level == menu.getLevel() && menu.getIsShow().intValue() == 1 && menu.getParentId().intValue() == parentId){
MenuDTO menuDTO = EntityUtil.changeEntityByJSON(MenuDTO.class, menu);
menuDTO.setChildren(this.treeMenu(menuList, menu.getLevel().intValue()+1, menuDTO.getMenuId()));
list = new ArrayList<>();
list.add(menuDTO);
}
}
......
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