天天看点

list某两列转成map集合

Map<Long, Long> map = yxhActivityDOS.stream().collect(Collectors.toMap(YxhActivityDO::getStoreId, YxhActivityDO::getActivityCount));
           

继续阅读