@ -523,7 +523,7 @@ public class CarePatientService extends BaseJpaService<BasePatientDO, BasePatien
}
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' ";