| 
					
				 | 
			
			
				@ -559,6 +559,9 @@ public class StatisticsService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (ind.equals("45")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                areaLevel="2"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (ind.equals("52")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                areaLevel="2"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            SaveModel saveModel = elasticsearchUtil.findOneDateQuotaLevel0(endDate, endDate, area, level, ind, SaveModel.timeLevel_DDL,areaLevel); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            res.put("index_"+ind+"_total",saveModel.getResult2().longValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNotBlank(type)){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1041,10 +1044,10 @@ public class StatisticsService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            orgCodes = orgCodes.replaceAll(",","','"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            filter = " not in ('"+orgCodes+"')"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql =" select count(id) from base_patient where del=1 and id "+filter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql =" select count(id) from base_patient  where del=1 and archive_type=1 and id "+filter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Integer olderCount  = jdbcTemplate.queryForObject(sql,Integer.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql = " select count(DISTINCT pd.id) from base_patient p INNER JOIN wlyy_patient_device pd on p.id = pd.user and pd.del=0 where p.del=1 and p.id "+filter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql = " select count(DISTINCT p.id) from base_patient p INNER JOIN wlyy_patient_device pd on p.id = pd.user and p.archive_type=1 and pd.del=0 where p.del=1 and p.id "+filter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Integer bindingCount  = jdbcTemplate.queryForObject(sql,Integer.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("olderCount",olderCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("bindingCount",bindingCount); 
			 |