Map<Long,MdCustomerCatg> largeCatg = largeList.stream().collect(Collectors.toMap(MdCustomerCatg::getCatgCode,s->s,(k1,k2)->k1));
Map<String,MdCustomerSalesman> salesmanMap = salesmanList.stream().collect(Collectors.toMap(s->s.getCustomerCode()+s.getSalesmanCode(),l->l,(k1,k2)->k1));``
java8 stream分组
最新推荐文章于 2024-07-07 20:33:00 发布