|  | @ -66,6 +66,40 @@ public class EsStatisticsEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |         return success(result);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param startDate
 | 
	
		
			
				|  |  |      * @param endDate
 | 
	
		
			
				|  |  |      * @param area
 | 
	
		
			
				|  |  |      * @param level 5 市  4区  3医院 2科室 1医生
 | 
	
		
			
				|  |  |      * @param index
 | 
	
		
			
				|  |  |      * @param level2_type 2 市  3区  4医院 5、科室 6医生
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Statistics.prescriptionLine)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "开方量周统计-曲线")
 | 
	
		
			
				|  |  |     public ObjEnvelop getPrescriptionLine(
 | 
	
		
			
				|  |  |             @RequestParam(required = true) String startDate,
 | 
	
		
			
				|  |  |             @RequestParam(required = true) String endDate,
 | 
	
		
			
				|  |  |             @RequestParam(required = true) String area,
 | 
	
		
			
				|  |  |             @RequestParam(required = true) int level,
 | 
	
		
			
				|  |  |             @RequestParam(required = true) String index,
 | 
	
		
			
				|  |  |             @RequestParam(required = false)int interval,
 | 
	
		
			
				|  |  |             @RequestParam(required = false) String level2_type) {
 | 
	
		
			
				|  |  |         //新版与旧版统计适配
 | 
	
		
			
				|  |  |         level = elasticsearchUtil.changeLevel(level);
 | 
	
		
			
				|  |  |         JSONObject result = new JSONObject();
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             result= statisticsEsService.getPrescriptionLine(startDate, endDate, area, level, index, interval,level2_type);
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return success(result);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Statistics.total)
 | 
	
		
			
				|  |  |     @ApiOperation(value = " 查询总数")
 | 
	
		
			
				|  |  |     public ObjEnvelop getIndexTotal(
 |