疯狂的狮子Li
2022-09-20 0e75aa6250b4e244b83823e3fd7d941e84c2897d
ruoyi-common/src/main/java/com/ruoyi/common/utils/StreamUtils.java
@@ -125,7 +125,7 @@
        }
        return collection
            .stream()
            .collect(Collectors.groupingBy(key, Collectors.toList()));
            .collect(Collectors.groupingBy(key, LinkedHashMap::new, Collectors.toList()));
    }
    /**
@@ -146,7 +146,7 @@
        }
        return collection
            .stream()
            .collect(Collectors.groupingBy(key1, Collectors.groupingBy(key2, Collectors.toList())));
            .collect(Collectors.groupingBy(key1, LinkedHashMap::new, Collectors.groupingBy(key2, LinkedHashMap::new, Collectors.toList())));
    }
    /**
@@ -167,7 +167,7 @@
        }
        return collection
            .stream()
            .collect(Collectors.groupingBy(key1, Collectors.toMap(key2, Function.identity(), (l, r) -> l)));
            .collect(Collectors.groupingBy(key1, LinkedHashMap::new, Collectors.toMap(key2, Function.identity(), (l, r) -> l)));
    }
    /**