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
          主站蜘蛛池模板: 克拉玛依市| 河西区| 油尖旺区| 吴忠市| 章丘市| 河北区| 镇赉县| 康保县| 扶余县| 广平县| 长阳| 美姑县| 垫江县| 许昌县| 二连浩特市| 乡城县| 德昌县| 庄河市| 易门县| 石家庄市| 息烽县| 呼伦贝尔市| 衢州市| 越西县| 林西县| 开封县| 璧山县| 阿拉善右旗| 大冶市| 新津县| 雅江县| 西盟| 固阳县| 鸡泽县| 时尚| 石泉县| 和政县| 巴里| 杨浦区| 双峰县| 麻栗坡县|