|  |  | @ -550,7 +550,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |     <!--  LEFT JOIN io_order_detail_code dc ON io.billNo = dc.orderIdFk--> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     <select id="getfilterOrderList" resultType="com.glxp.api.res.inout.IoOrderResponse"> |  |  |  |     <select id="getfilterOrderList" resultType="com.glxp.api.res.inout.IoOrderResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT io.*, |  |  |  |         SELECT io.*, | 
			
		
	
		
		
			
				
					
					|  |  |  |                bus.NAME AS billTypeName, |  |  |  |                bus.NAME AS billTypeName, | 
			
		
	
	
		
		
			
				
					|  |  | @ -562,7 +562,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                      LEFT JOIN auth_dept ad ON io.deptCode = ad.CODE |  |  |  |                      LEFT JOIN auth_dept ad ON io.deptCode = ad.CODE | 
			
		
	
		
		
			
				
					
					|  |  |  |                      LEFT JOIN auth_warehouse aw ON io.invCode = aw.CODE |  |  |  |                      LEFT JOIN auth_warehouse aw ON io.invCode = aw.CODE | 
			
		
	
		
		
			
				
					
					|  |  |  |                      LEFT JOIN basic_corp bc ON io.fromCorp = bc.erpId |  |  |  |                      LEFT JOIN basic_corp bc ON io.fromCorp = bc.erpId | 
			
		
	
		
		
			
				
					
					|  |  |  |                      LEFT JOIN io_order_detail_code dc ON io.billNo = dc.orderIdFk |  |  |  |                      left join io_order_invoice on io_order_invoice.orderIdFk = io.billNo | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="confirmStatus != null and confirmStatus != ''"> |  |  |  |             <if test="confirmStatus != null and confirmStatus != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND io.checkStatus = #{confirmStatus} |  |  |  |                 AND io.checkStatus = #{confirmStatus} | 
			
		
	
	
		
		
			
				
					|  |  | @ -605,6 +605,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="inCodeStatus != null"> |  |  |  |             <if test="inCodeStatus != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND io.inCodeStatus = #{inCodeStatus} |  |  |  |                 AND io.inCodeStatus = #{inCodeStatus} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="invoiceRegStatus != null  and invoiceRegStatus == 1"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND io_order_invoice.id IS NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="invoiceRegStatus != null  and invoiceRegStatus == 2"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND io_order_invoice.id IS not NULL | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="relKey != null"> |  |  |  |             <if test="relKey != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND io.relKey like concat('%', #{relKey}, '%') |  |  |  |                 AND io.relKey like concat('%', #{relKey}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |