|
|
@ -223,11 +223,7 @@ public class SysMenuServiceImpl implements ISysMenuService
|
|
|
|
public List<SysMenu> buildMenuTree(List<SysMenu> menus)
|
|
|
|
public List<SysMenu> buildMenuTree(List<SysMenu> menus)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<SysMenu> returnList = new ArrayList<SysMenu>();
|
|
|
|
List<SysMenu> returnList = new ArrayList<SysMenu>();
|
|
|
|
List<Long> tempList = new ArrayList<Long>();
|
|
|
|
List<Long> tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList());
|
|
|
|
for (SysMenu dept : menus)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
tempList.add(dept.getMenuId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for (Iterator<SysMenu> iterator = menus.iterator(); iterator.hasNext();)
|
|
|
|
for (Iterator<SysMenu> iterator = menus.iterator(); iterator.hasNext();)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SysMenu menu = (SysMenu) iterator.next();
|
|
|
|
SysMenu menu = (SysMenu) iterator.next();
|
|
|
@ -479,8 +475,8 @@ public class SysMenuServiceImpl implements ISysMenuService
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 递归列表
|
|
|
|
* 递归列表
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param list
|
|
|
|
* @param list 分类表
|
|
|
|
* @param t
|
|
|
|
* @param t 子节点
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void recursionFn(List<SysMenu> list, SysMenu t)
|
|
|
|
private void recursionFn(List<SysMenu> list, SysMenu t)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -525,7 +521,7 @@ public class SysMenuServiceImpl implements ISysMenuService
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 内链域名特殊字符替换
|
|
|
|
* 内链域名特殊字符替换
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return 替换后的内链域名
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public String innerLinkReplaceEach(String path)
|
|
|
|
public String innerLinkReplaceEach(String path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|