mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 18:15:56 +08:00
Pre Merge pull request !204 from 抓蛙师/auto-7465549-dev-1657950299488
This commit is contained in:
commit
fd4d0e98b1
@ -125,7 +125,7 @@ public class StreamUtils {
|
|||||||
}
|
}
|
||||||
return collection
|
return collection
|
||||||
.stream()
|
.stream()
|
||||||
.collect(Collectors.groupingBy(key, Collectors.toList()));
|
.collect(Collectors.groupingBy(key, LinkedHashMap::new, Collectors.toList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,7 +146,8 @@ public class StreamUtils {
|
|||||||
}
|
}
|
||||||
return collection
|
return collection
|
||||||
.stream()
|
.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 +168,8 @@ public class StreamUtils {
|
|||||||
}
|
}
|
||||||
return collection
|
return collection
|
||||||
.stream()
|
.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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user