lyyb2001

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

          java8 stream groupingby多個(gè)條件的問(wèn)題

          Posted on 2016-03-22 16:14 skycity 閱讀(11376) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): 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

          隨機(jī)光盤(pán)

          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
          主站蜘蛛池模板: 湛江市| 平阳县| 郓城县| 庆城县| 伊金霍洛旗| 金寨县| 南充市| 永平县| 化德县| 海宁市| 连云港市| 陆丰市| 南丹县| 赤壁市| 连城县| 灵武市| 易门县| 兖州市| 华安县| 神池县| 湛江市| 平泉县| 海南省| 淳安县| 邵东县| 斗六市| 炎陵县| 新津县| 安塞县| 克什克腾旗| 洪江市| 贵港市| 威信县| 精河县| 宁蒗| 武功县| 都兰县| 林芝县| 南雄市| 获嘉县| 利津县|