lists.stream().collect(Collectors.toMap(e -> e.get("bill_no").toString(),e2 -> e2));
java 1.8 将 list<Map<String,Object>>转化为Map<String,Object>
最新推荐文章于 2024-03-08 23:27:49 发布
lists.stream().collect(Collectors.toMap(e -> e.get("bill_no").toString(),e2 -> e2));