|  | @@ -183,7 +183,7 @@ public interface MzyReqrecMapper {
 | 
	
		
			
				|  |  |              " and visit_doctor =#{doctorCode} ",
 | 
	
		
			
				|  |  |              "</when>",
 | 
	
		
			
				|  |  |              "<when test='deptCode!=null'>",
 | 
	
		
			
				|  |  | -            " and isnull(visit_dept,unit_code) =#{deptCode}",
 | 
	
		
			
				|  |  | +            " and (visit_dept = #{deptCode} or unit_code = #{deptCode})",
 | 
	
		
			
				|  |  |              "</when>",
 | 
	
		
			
				|  |  |               "</script>"})
 | 
	
		
			
				|  |  |      Integer selectValidMzyReqrec(@Param("patientId")String patientId,@Param("doctorCode")String doctorCode,@Param("deptCode")String deptCode,@Param("befoDate")Date befoDate);
 |