1.hashmap转为treeMap
TreeMap<String, List<StateStockDO>> dateCollect = collect.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey(), entry -> entry.getValue(), (oldValue, newValue) -> newValue, TreeMap::new));
2.对集合进行分组转为map
Map<String, List<StateStockDO>> collect = dataList.stream().collect(Collectors.groupingBy(StateStockDO::getCdate))