对象list分组Map<String, List<OrderItem>> trainClassMap = orderItems.stream().collect(Collectors.groupingBy(OrderItem::getOrderSn));