|  | @@ -37,10 +37,11 @@ public interface PatientDao {
 | 
	
		
			
				|  |  |              "                   (select name from a_employee_mi where code = refer_physician) as consult_physician_name, " +
 | 
	
		
			
				|  |  |              "                   dept_director, " +
 | 
	
		
			
				|  |  |              "                   (select name from a_employee_mi where code = refer_physician) as dept_director_name " +
 | 
	
		
			
				|  |  | -            "from zy_actpatient a where a.ward like #{ward} and charindex('$',a.inpatient_no)=0 " +
 | 
	
		
			
				|  |  | +            "from zy_actpatient a where a.ward like #{ward} ${sql} " +
 | 
	
		
			
				|  |  |              "ORDER BY cast(a.bed_no AS int)")
 | 
	
		
			
				|  |  |      List<Overview> getOverView(@Param("ward") String ward,
 | 
	
		
			
				|  |  | -                               @Param("userCode") String userCode);
 | 
	
		
			
				|  |  | +                               @Param("userCode") String userCode,
 | 
	
		
			
				|  |  | +                               @Param("sql") String sql);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select("<script>" +
 | 
	
		
			
				|  |  |              "select inpatientNo=rtrim(a.inpatient_no),a.admiss_times,a.med_type,b.social_no,dis_date," +
 |