Map<Integer, List<PlatformMenuResp>> parentIdMap = platformMenuResps.stream()
.filter(menu -> !YnEnums.INVALID.getCode().equals(menu.getMenuLevel()))
.collect(Collectors.groupingBy(PlatformMenuResp::getParentId, Collectors.toList()));
拉姆达表达式分组 遍历 取值 辅助