Map<Long, List> map = list.stream().collect(Collectors.groupingBy(s -> s.orgId()));