|  | @@ -34,7 +34,7 @@ public interface SiMzDao {
 | 
	
		
			
				|  |  |      @Select("SELECT rtrim(a.patient_id) as patientId,a.times,a.visit_dept_code,b.adress,rtrim(b.phone_no) as phoneNo, " +
 | 
	
		
			
				|  |  |              "rtrim(b.name) as name,b.age,sex=case when b.sex='1' then '男' when b.sex='2' then '女' else '未知' end, " +
 | 
	
		
			
				|  |  |              "visitDeptName=(select rtrim(name) from zd_unit_code where code=a.visit_dept_code), " +
 | 
	
		
			
				|  |  | -            "a.doctor_code,a.visit_date,a.receipt_no,a.order_no,a.op_day, " +
 | 
	
		
			
				|  |  | +            "a.doctor_code,a.visit_date,a.receipt_no,a.order_no,a.op_day,b.social_no, " +
 | 
	
		
			
				|  |  |              "doctorName=(select rtrim(name) from a_employee_mi where code=a.doctor_code), " +
 | 
	
		
			
				|  |  |              "doctorYbCode=(select rtrim(yb_code) from a_employee_mi where code=a.doctor_code), " +
 | 
	
		
			
				|  |  |              "icdText=case when nullif(a.icd_code_new,'') is null then rtrim(a.icd_text) else rtrim(a.icd_text_new) end, " +
 |