|  | @ -2493,9 +2493,9 @@ public class StatisticsService {
 | 
	
		
			
				|  |  |                 " and CONVERT(sr.patient USING utf8) not in (SELECT dict_code FROM `base`.`wlyy_hospital_sys_dict` WHERE `dict_name` = 'jkzl_older' or dict_name='jkzl_child')  ) ";
 | 
	
		
			
				|  |  |         String pageSql = " order by life.create_time desc limit "+page*pageSize+","+pageSize;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String headSql = "SELECT life.id,life.number,life.patient,life.patient_name patientName,life.patient_phone patientPhone,life.hospital,life.hospital_name hospitalName,CAST(DATE_FORMAT(life.create_time,'%Y-%m-%d %H:%i:%S') as char) createTime,de.name serviceName,p.idcard,p.residential_area residentialArea ";
 | 
	
		
			
				|  |  |         String headSql = "SELECT life.id,life.number,life.patient,life.patient_name patientName,life.patient_phone patientPhone,life.hospital,life.hospital_name hospitalName,CAST(DATE_FORMAT(life.create_time,'%Y-%m-%d %H:%i:%S') as char) createTime,de.name serviceName,p.idcard,p.residential_area residentialArea,o.mobile hospitalMobile,life.status,p.photo ";
 | 
	
		
			
				|  |  |         String countSql = "SELECT count(*) ";
 | 
	
		
			
				|  |  |         String tableSql = " FROM base_life_care_order life left join base_life_care_fee_detail de on life.id = de.order_id left join base_patient p on life.patient = p.id where 1=1 ";
 | 
	
		
			
				|  |  |         String tableSql = " FROM base_life_care_order life left join base_life_care_fee_detail de on life.id = de.order_id left join base_patient p on life.patient = p.id left join base_org o on life.hospital = o.code where 1=1 ";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(name)){
 | 
	
		
			
				|  |  |             tableSql += " and p.name like '%"+name+"%' ";
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -2506,7 +2506,7 @@ public class StatisticsService {
 | 
	
		
			
				|  |  |             tableSql += " and p.residential_area like '%"+area+"%' ";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         if(status == null){
 | 
	
		
			
				|  |  |             tableSql += " and life.status in (1,2,3) ";
 | 
	
		
			
				|  |  |             //tableSql += " and life.status in (1,2,3) ";
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             tableSql += " and life.status = "+status + " ";
 | 
	
		
			
				|  |  |         }
 |