lyyb2001

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

          java8 stream groupingby多個條件的問題

          Posted on 2016-03-22 16:14 skycity 閱讀(11382) 評論(0)  編輯  收藏 所屬分類: J2EE技術(shù)
          @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);

                  });

          });

          最終返回的結(jié)果

          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
          主站蜘蛛池模板: 贵港市| 革吉县| 德江县| 会同县| 荥阳市| 四子王旗| 保亭| 牙克石市| 潍坊市| 普格县| 天峻县| 宕昌县| 伊金霍洛旗| 平利县| 泸定县| 丹棱县| 浦城县| 泗水县| 定襄县| 和静县| 六盘水市| 永胜县| 长沙市| 安国市| 习水县| 镇平县| 河西区| 汕尾市| 宁夏| 永寿县| 江陵县| 称多县| 宝坻区| 安福县| 炉霍县| 九寨沟县| 岳普湖县| 饶阳县| 共和县| 麟游县| 沙雅县|