Explorar o código

更新 '_posts/常用的代码块.md'

aaronwei %!s(int64=5) %!d(string=hai) anos
pai
achega
df9759bb0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      _posts/常用的代码块.md

+ 1 - 1
_posts/常用的代码块.md

@@ -39,7 +39,7 @@ private static Map<String, Object> sortByKey(Map<String, Object> map) {
     Map<Object,List<Object>> map = demoList.stream().collect(Collectors.groupingBy(Object::getAttr));
     //2 按照多个字段
     Map<String, List<Object>> groupBy = objectList.stream().collect(Collectors
-    .groupingBy(o -> o.getApplyId() + "_" + o.getSkuId()));
+    .groupingBy(o -> o.getAttr1() + "_" + o.getAttr2()));
 
 ```