| 
					
				 | 
			
			
				@ -730,8 +730,23 @@ public class StatisticsEsService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonObject.put("total",decimalFormat.format(total));//总和 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                array.add(jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("excelData",array); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            List<JSONObject> bindArrayResult = JSONArray.parseArray(array.toJSONString(), JSONObject.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            System.out.println("排序前:"+bindArrayResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Collections.sort(bindArrayResult, new Comparator<JSONObject>() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                public int compare(JSONObject o1, JSONObject o2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    int a = o1.getString("total").length(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    int b = o2.getString("total").length(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (a > b) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        return -1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } else if(a == b) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        return 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONArray jsonArray = JSONArray.parseArray(bindArrayResult.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            object.put("excelData",jsonArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return object; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -4521,7 +4536,7 @@ public class StatisticsEsService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        SaveModel synergyTotal = elasticsearchUtil.findOneDateQuotaLevel1(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL,"2"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        object.put("synergyTotal",decimalFormat.format(synergyTotal.getResult1())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //总收入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        SaveModel totalPrice = elasticsearchUtil.findOneDateQuotaLevel0(startDate, endDate, area, level, index, SaveModel.timeLevel_DDL); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        SaveModel totalPrice = elasticsearchUtil.findOneDateQuotaLevel0(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        object.put("totalPrice",decimalFormat.format(totalPrice.getResult1())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return object; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |