摘要:
常用方式 list.stream().collect(Collectors.toMap(v -> StrUtil.isNotBlank(v.getAreaName())?StrUtil.replace(v.getAreaName(),"区","").replace("管委会",""):"", v-> 阅读全文
posted @ 2022-02-15 09:54
全琪俊
阅读(956)
评论(0)
推荐(0)
摘要:
Collectors.groupingBy根据一个或多个属性对集合中的项目进行分组 数据准备: public Product(Long id, Integer num, BigDecimal price, String name, String category) { this.id = id; t 阅读全文
posted @ 2022-02-15 09:47
全琪俊
阅读(674)
评论(0)
推荐(0)

浙公网安备 33010602011771号