Map<String, List<StSoilRDTO>> map = list.stream().collect(Collectors.groupingBy(StSoilRDTO::getStnm));
List 按照指定字段分组
最新推荐文章于 2024-03-05 23:05:35 发布
Map<String, List<StSoilRDTO>> map = list.stream().collect(Collectors.groupingBy(StSoilRDTO::getStnm));