| 
					
				 | 
			
			
				@@ -20,7 +20,10 @@ import thyyxxk.webserver.entity.casefrontsheet.JieShouHuiZhenPojo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Mapper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public interface JieShouHuiZhenDao { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @Select("select bed_no,name,a.admiss_times,a.inpatient_no,req_times from ysh_hz_record a with(nolock) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Select("select bed_no,name,a.admiss_times,a.inpatient_no,req_times,hz_type," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "dept_code_name =   (select rtrim(name) from zd_unit_code with (nolock) where code = dept_code), " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "req_dept1_name =   (select rtrim(name) from zd_unit_code with (nolock) where code = req_dept1) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "from ysh_hz_record a with(nolock) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             " inner join zy_actpatient b with(nolock) on " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "    (b.inpatient_no = a.inpatient_no)" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             " ${ew.customSqlSegment} ") 
			 |