| | |
| | | String menuId = menuMapping.getMenuId(); |
| | | SysMenu menu = menuService.selectById(menuId); |
| | | String preParentId = menu.getParentId(); |
| | | |
| | | menu.setName(menuMapping.getName()).updateById(); |
| | | String themeId = menuMapping.getThemeId(); |
| | | if (!preParentId.equalsIgnoreCase(themeId)) { |
| | | menu.setParentId(themeId); |
| | | menu.updateById(); |
| | | } |
| | | // if (!preParentId.equalsIgnoreCase(themeId)) { |
| | | //// menu.setParentId(themeId); |
| | | //// menu.updateById(); |
| | | //// } |
| | | boolean updated = menuMapping.updateById(); |
| | | if (updated) { |
| | | |
| | | |
| | | |
| | | TUser user = DbUtils.getUser(request); |
| | | if (menu != null) { |
| | | LinkedHashSet<String> parentIdSet = new LinkedHashSet<>(); |