|  |  | @ -54,7 +54,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND bp.productsType = #{productsType} |  |  |  |                 AND bp.productsType = #{productsType} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ggxh != null and ggxh != ''"> |  |  |  |             <if test="ggxh != null and ggxh != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND bp.ggxh like concat('%', #{ggxh}, '%') |  |  |  |                 AND ( | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 bp.ggxh like concat('%', #{ggxh}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.bzgg like concat('%', #{ggxh}, '%')) | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="batchNo != null and batchNo != ''"> |  |  |  |             <if test="batchNo != null and batchNo != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ip.batchNo like concat('%', #{batchNo}, '%') |  |  |  |                 AND ip.batchNo like concat('%', #{batchNo}, '%') | 
			
		
	
	
		
		
			
				
					|  |  | @ -66,11 +68,16 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ip.expireDate = #{expireDate} |  |  |  |                 AND ip.expireDate = #{expireDate} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ylqxzcrbarmc != null and ylqxzcrbarmc != ''"> |  |  |  |             <if test="ylqxzcrbarmc != null and ylqxzcrbarmc != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND bp.ylqxzcrbarmc like concat('%', #{ylqxzcrbarmc}, '%') |  |  |  |                 AND ( | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 bp.ylqxzcrbarmc like concat('%', #{ylqxzcrbarmc}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.manufactory like concat('%', #{ylqxzcrbarmc}, '%')) | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''"> |  |  |  |             <if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND bp.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%') |  |  |  |                 AND bp.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="prepnSpec != null and prepnSpec != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND bp.prepnSpec like concat('%', #{prepnSpec}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="customerId != null and customerId != ''"> |  |  |  |             <if test="customerId != null and customerId != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND ip.customerId = #{customerId} |  |  |  |                 AND ip.customerId = #{customerId} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
	
		
		
			
				
					|  |  | @ -101,6 +108,17 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     #{item} |  |  |  |                     #{item} | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </foreach> |  |  |  |                 </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="keyWords != '' and keyWords != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND ( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 bp.nameCode like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.cpmctymc like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.bzgg like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.ggxh like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or ip.batchNo like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.prepnSpec like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.ylqxzcrbarmc like concat('%', #{keyWords}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 or bp.manufactory LIKE concat('%', #{keyWords}, '%')) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         GROUP BY ip.relIdFk, ip.batchNo, ip.supId, ip.price |  |  |  |         GROUP BY ip.relIdFk, ip.batchNo, ip.supId, ip.price | 
			
		
	
		
		
			
				
					
					|  |  |  |         order by ip.updateTime desc |  |  |  |         order by ip.updateTime desc | 
			
		
	
	
		
		
			
				
					|  |  | 
 |