From edbde96487afbb300e08d5863cdc57631dc8c137 Mon Sep 17 00:00:00 2001
From: 沉浸独 <953969331@qq.com>
Date: 星期五, 26 八月 2022 14:46:08 +0800
Subject: [PATCH] sa-token-jwt中hutool是5.7.14,会影响到项目中的5.8.5的使用;使用Ipv4Util时,用的是5.7.14

---
 ruoyi-common/src/main/java/com/ruoyi/common/utils/StreamUtils.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/StreamUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/StreamUtils.java
index 0de2784..fccd9e3 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/StreamUtils.java
+++ b/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)));
     }
 
     /**

--
Gitblit v1.9.3