| | |
| | | public List<SysMenu> buildMenuTree(List<SysMenu> menus)
|
| | | {
|
| | | List<SysMenu> returnList = new ArrayList<SysMenu>();
|
| | | List<Long> tempList = new ArrayList<Long>();
|
| | | for (SysMenu dept : menus)
|
| | | {
|
| | | tempList.add(dept.getMenuId());
|
| | | }
|
| | | List<Long> tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList());
|
| | | for (Iterator<SysMenu> iterator = menus.iterator(); iterator.hasNext();)
|
| | | {
|
| | | SysMenu menu = (SysMenu) iterator.next();
|
| | |
| | | */
|
| | | public String innerLinkReplaceEach(String path)
|
| | | {
|
| | | return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS },
|
| | | new String[] { "", "" });
|
| | | return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." },
|
| | | new String[] { "", "", "", "/" });
|
| | | }
|
| | | }
|