|  | @ -523,7 +523,7 @@ public class CarePatientService extends BaseJpaService<BasePatientDO, BasePatien
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     public Integer findOldTotal(String name,String residentialArea){
 |  |     public Integer findOldTotal(String name,String residentialArea){
 | 
												
													
														
															|  |         String sql = "SELECT count(DISTINCT a.id,a.name,a.photo,a.idcard,a.birthday,a.residential_area,a.sex) from base_patient a  WHERE a.archive_type = 1 and a.del = '1' ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String sql = "SELECT count(a.id) from base_patient a  WHERE a.archive_type = 1 and a.del = '1' ";
 | 
												
													
														
															|  |         if(!StringUtil.isBlank(name)){
 |  |         if(!StringUtil.isBlank(name)){
 | 
												
													
														
															|  |             sql+= " and name like '%"+name+"%' ";
 |  |             sql+= " and name like '%"+name+"%' ";
 | 
												
													
														
															|  |         }
 |  |         }
 |