lyyb2001

          只是為方便自己找記錄而已
          posts - 57, comments - 27, trackbacks - 0, articles - 5
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理

          java8 stream groupingby多個條件的問題

          Posted on 2016-03-22 16:14 skycity 閱讀(11376) 評論(0)  編輯  收藏 所屬分類: J2EE技術
          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

          Map<Integer,Map<String,List<DocLotDetail>>> amp                            docLotDetailLists.parallelStream().collect(Collectors.groupingBy(DocLotDetail::getGroupOrder,Collectors.groupingBy(DocLotDetail::getBaseValueName)));





          amp.forEach((key,value)->{

                  System.out.println(key);

                   value.forEach((key2,value2)->{

                      System.out.println(key2);

                  });

          });

          最終返回的結果

          2

          隨機光盤

          3

          資料袋附件

          4

          資料盒附件

          5

          包裝輔料

          8

          前工序物料






          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

          Lyyb2001
          主站蜘蛛池模板: 中方县| 晋宁县| 元江| 兰西县| 吉隆县| 南投县| 磐石市| 宜黄县| 光泽县| 汶上县| 小金县| 楚雄市| 德令哈市| 福鼎市| 姜堰市| 博客| 通榆县| 阳城县| 清涧县| 芜湖市| 大姚县| 北宁市| 镇康县| 永吉县| 齐河县| 福海县| 农安县| 神农架林区| 五指山市| 哈巴河县| 安泽县| 星子县| 桓台县| 乐昌市| 双桥区| 浦县| 永善县| 西峡县| 河津市| 五峰| 上思县|