|  | @ -446,7 +446,7 @@ public class StatisticsEsService {
 | 
												
													
														
															|  |         //问诊量
 |  |         //问诊量
 | 
												
													
														
															|  |         JSONObject object = new JSONObject();
 |  |         JSONObject object = new JSONObject();
 | 
												
													
														
															|  |         if (interval==1){
 |  |         if (interval==1){
 | 
												
													
														
															|  |             JSONArray array = dateTotalStatistics3(startDate,endDate,area,level,index,null,SaveModel.timeLevel_ZL,level2_type);
 |  | 
 | 
												
													
														
															|  | 
 |  |             JSONArray array = dateTotalStatistics3(startDate,endDate,area,level,index,null,SaveModel.timeLevel_ZL,null);
 | 
												
													
														
															|  |             object.put("data",array);
 |  |             object.put("data",array);
 | 
												
													
														
															|  |             JSONArray array1 = dateTotalStatistics3(startDate,endDate,area,level,index,"3",SaveModel.timeLevel_ZL,null);
 |  |             JSONArray array1 = dateTotalStatistics3(startDate,endDate,area,level,index,"3",SaveModel.timeLevel_ZL,null);
 | 
												
													
														
															|  |             object.put("specialistData",array1);
 |  |             object.put("specialistData",array1);
 | 
												
											
												
													
														
															|  | @ -4556,7 +4556,7 @@ public class StatisticsEsService {
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     public JSONObject appCenterCircular(String startDate, String endDate, String area, int level, String index) throws Exception {
 |  | 
 | 
												
													
														
															|  | 
 |  |     public JSONObject appCenterCircular(String startDate, String endDate, String area, int level, String index,String flag) throws Exception {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         JSONObject object = new JSONObject();
 |  |         JSONObject object = new JSONObject();
 | 
												
													
														
															|  |         if (index.equalsIgnoreCase("3")||index.equalsIgnoreCase("3,21")||index.equalsIgnoreCase("21")){
 |  |         if (index.equalsIgnoreCase("3")||index.equalsIgnoreCase("3,21")||index.equalsIgnoreCase("21")){
 | 
												
											
												
													
														
															|  | @ -4600,23 +4600,44 @@ public class StatisticsEsService {
 | 
												
													
														
															|  |             object.put("total",decimalFormat.format(total));
 |  |             object.put("total",decimalFormat.format(total));
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         }else if (index.equalsIgnoreCase("20")){
 |  |         }else if (index.equalsIgnoreCase("20")){
 | 
												
													
														
															|  |             //图文复诊
 |  | 
 | 
												
													
														
															|  |             SaveModel saveModel2 = null;
 |  | 
 | 
												
													
														
															|  |             saveModel2 = elasticsearchUtil.findOneDateQuotaLevel2NoSlaveKey1(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL, "1");
 |  | 
 | 
												
													
														
															|  |             //视频复诊
 |  | 
 | 
												
													
														
															|  |             SaveModel saveModel3 = null;
 |  | 
 | 
												
													
														
															|  |             saveModel3 = elasticsearchUtil.findOneDateQuotaLevel2NoSlaveKey1(startDate, endDate, area, level, index, SaveModel.timeLevel_DDL, "2");
 |  | 
 | 
												
													
														
															|  |             //总数
 |  | 
 | 
												
													
														
															|  |             SaveModel saveModel1 = null;
 |  | 
 | 
												
													
														
															|  |             saveModel1 = elasticsearchUtil.findOneDateQuotaLevel0(startDate, endDate, area, level, index, SaveModel.timeLevel_DDL);
 |  | 
 | 
												
													
														
															|  |             Double topicCount = saveModel2.getResult1();//图文复诊数量
 |  | 
 | 
												
													
														
															|  |             Double videoCount = saveModel3.getResult1();//视频复诊数量
 |  | 
 | 
												
													
														
															|  |             Double total = saveModel1.getResult1();//总量
 |  | 
 | 
												
													
														
															|  |             object.put("topicCount",topicCount);//图文复诊数量
 |  | 
 | 
												
													
														
															|  |             object.put("topicRate",getRange(topicCount.intValue(),total.intValue(),0));
 |  | 
 | 
												
													
														
															|  |             object.put("videoCount",videoCount);//视频复诊数量
 |  | 
 | 
												
													
														
															|  |             object.put("videoRate",getRange(videoCount.intValue(),total.intValue(),0));
 |  | 
 | 
												
													
														
															|  |             object.put("total",total);
 |  | 
 | 
												
													
														
															|  | 
 |  |             if (flag.equalsIgnoreCase("1")){
 | 
												
													
														
															|  | 
 |  |                 //图文复诊
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel2 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel2 = elasticsearchUtil.findOneDateQuotaLevel2NoSlaveKey1(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL, "1");
 | 
												
													
														
															|  | 
 |  |                 //视频复诊
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel3 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel3 = elasticsearchUtil.findOneDateQuotaLevel2NoSlaveKey1(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL, "2");
 | 
												
													
														
															|  | 
 |  |                 //总数
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel1 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel1 = elasticsearchUtil.findOneDateQuotaLevel0(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL);
 | 
												
													
														
															|  | 
 |  |                 Double topicCount = saveModel2.getResult1();//图文复诊数量
 | 
												
													
														
															|  | 
 |  |                 Double videoCount = saveModel3.getResult1();//视频复诊数量
 | 
												
													
														
															|  | 
 |  |                 Double total = saveModel1.getResult1();//总量
 | 
												
													
														
															|  | 
 |  |                 object.put("topicCount",topicCount);//图文复诊数量
 | 
												
													
														
															|  | 
 |  |                 object.put("topicRate",getRange(topicCount.intValue(),total.intValue(),0));
 | 
												
													
														
															|  | 
 |  |                 object.put("videoCount",videoCount);//视频复诊数量
 | 
												
													
														
															|  | 
 |  |                 object.put("videoRate",getRange(videoCount.intValue(),total.intValue(),0));
 | 
												
													
														
															|  | 
 |  |                 object.put("total",total);
 | 
												
													
														
															|  | 
 |  |             }else if (flag.equalsIgnoreCase("1")){
 | 
												
													
														
															|  | 
 |  |                 //快递
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel2 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel2 = elasticsearchUtil.findOneDateQuotaLevel3NoSlaveKey2(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL, "0");
 | 
												
													
														
															|  | 
 |  |                 //自取
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel3 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel3 = elasticsearchUtil.findOneDateQuotaLevel3NoSlaveKey2(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL, "1");
 | 
												
													
														
															|  | 
 |  |                 //总数
 | 
												
													
														
															|  | 
 |  |                 SaveModel saveModel1 = null;
 | 
												
													
														
															|  | 
 |  |                 saveModel1 = elasticsearchUtil.findOneDateQuotaLevel0(startDate, endDate, area, level, index, SaveModel.timeLevel_ZL);
 | 
												
													
														
															|  | 
 |  |                 Double topicCount = saveModel2.getResult1();//图文复诊数量
 | 
												
													
														
															|  | 
 |  |                 Double videoCount = saveModel3.getResult1();//视频复诊数量
 | 
												
													
														
															|  | 
 |  |                 Double total = saveModel1.getResult1();//总量
 | 
												
													
														
															|  | 
 |  |                 object.put("express",topicCount);//快递数量
 | 
												
													
														
															|  | 
 |  |                 object.put("expressRate",getRange(topicCount.intValue(),total.intValue(),0));
 | 
												
													
														
															|  | 
 |  |                 object.put("invite",videoCount);//自取数量
 | 
												
													
														
															|  | 
 |  |                 object.put("inviteRate",getRange(videoCount.intValue(),total.intValue(),0));
 | 
												
													
														
															|  | 
 |  |                 object.put("total",total);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         return object;
 |  |         return object;
 |