| | |
| | | .eq(OptimizeHeatDetail::getProjectNo, current) |
| | | ); |
| | | |
| | | Map<String, List<Map<String, Object>>> groupBy = resultCutTerritory.stream().collect(Collectors.groupingBy(item -> item.get("layout_id").toString())); |
| | | Map<String, List<Map<String, Object>>> groupBy=resultCutTerritory.stream().collect(Collectors.groupingBy(item->item.get("layout_id").toString())); |
| | | // List<List<Map<String, Object>>> Result=groupBy.values().stream().collect(Collectors.toList()); |
| | | List<List<Map<String, Object>>> result = new ArrayList<>(); |
| | | for (int i = 1; i <= groupBy.keySet().size(); i++) { |
| | | String key = i + ""; |
| | | if (key != null) { |
| | | List<List<Map<String, Object>>> result=new ArrayList<>(); |
| | | for (int i=1;i<=groupBy.keySet().size();i++) { |
| | | String key=i+""; |
| | | if(key!=null){ |
| | | result.add(groupBy.get(key)); |
| | | } |
| | | } |