kimi
2020-04-02 4ef5ed0e06363716579850cb924f3658a3a2f079
src/main/java/com/highdatas/mdm/controller/SysMenuController.java
@@ -101,8 +101,15 @@
        }
        List<MenuMapping> menuMappingList = menuMappingService.selectList(new EntityWrapper<MenuMapping>().in("table_name", tableNameSet));
        List<String> menuIds = menuMappingList.stream().map(MenuMapping::getMenuId).collect(Collectors.toList());
        if (menuIds.isEmpty()) {
            return Result.success(null);
        }
        LinkedHashSet<String> parentIdSet = new LinkedHashSet<>(menuIds);
        Set<String> byParentId = menuService.getByParentId(parentIdSet);
        if (byParentId == null || byParentId.isEmpty()) {
            return Result.success(null);
        }
        List<SysMenu> parentList = menuService.selectBatchIds(byParentId);
        return Result.success(parentList);