|  |  |  | @ -54,9 +54,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="productType != null and productType != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND io.productType = #{productType} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="keyWords != null and keyWords != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND (aw.name like concat('%', #{keyWords}, '%') or bc.name like concat('%', #{keyWords}, '%')) | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <if test="keyWords != null and keyWords != ''">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                AND (aw.name like concat('%', #{keyWords}, '%') or bc.name like concat('%', #{keyWords}, '%'))--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </if>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="corpName != null and corpName != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND (SELECT NAME FROM auth_warehouse aw2 WHERE aw2.CODE = io.fromInvCode) like | 
			
		
	
	
		
			
				
					|  |  |  | @ -191,6 +191,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="fromPatientCode != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND io.fromPatientCode = #{fromPatientCode} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="keywords != null and keywords != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and (io.billNo like concat('%', #{keywords}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |                 or io.fromCorp like concat('%', #{keywords}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |                 or io.workPlaceCode like concat('%', #{keywords}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |                 or io.busType like concat('%', #{keywords}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |                 or io.fromType like concat('%', #{keywords}, '%')) | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="supInoivceSearch != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <if test="invoiceActions1 != null and invoiceActions2 == null"> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |