|  | @@ -43,7 +43,8 @@ public interface PatientDao {
 | 
	
		
			
				|  |  |                                 @Param("userCode") String userCode);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select("<script>" +
 | 
	
		
			
				|  |  | -            "select inpatientNo=rtrim(a.inpatient_no),a.admiss_times,a.med_type,b.social_no,dis_date, " +
 | 
	
		
			
				|  |  | +            "select inpatientNo=rtrim(a.inpatient_no),a.admiss_times,a.med_type,b.social_no,dis_date," +
 | 
	
		
			
				|  |  | +            "zk_ward,zk_ward_name = (select rtrim(name) from zd_unit_code where code=zk_ward), " +
 | 
	
		
			
				|  |  |              "name=rtrim(a.name),sex=isnull(a.sex, b.sex),act_ipt_days=(datediff(day, admiss_date, getdate())), " +
 | 
	
		
			
				|  |  |              "birthDate=(convert(varchar(10), birth_date, 21)),home_tel=rtrim(b.home_tel), " +
 | 
	
		
			
				|  |  |              "admissPhysician=rtrim(a.admiss_physician), " +
 |