|  |  |  | @ -26,7 +26,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterOrderList" resultType="com.glxp.api.res.inout.IoOrderDetailResultResponse"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT a2.*, | 
			
		
	
		
			
				
					|  |  |  |  |                 aw.name                                                                  as fromInvName, | 
			
		
	
		
			
				
					|  |  |  |  |               aw2.name                                                                  as fromOutName, | 
			
		
	
		
			
				
					|  |  |  |  |                 a1.mainAction, | 
			
		
	
		
			
				
					|  |  |  |  |                 a1.confirmTime, | 
			
		
	
		
			
				
					|  |  |  |  |                 a1.auditTime, | 
			
		
	
	
		
			
				
					|  |  |  | @ -37,13 +36,11 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 basic_bussiness_type.name                                                   billTypeName | 
			
		
	
		
			
				
					|  |  |  |  |         FROM io_order_detail_result a2 | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN io_order a1 ON a1.billNo = a2.orderIdFk | 
			
		
	
		
			
				
					|  |  |  |  |                      LEFT JOIN io_order a3 ON a3.ullageSupNo = a2.orderIdFk | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN basic_corp b1 ON b1.erpId = a1.fromCorp | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN basic_udirel bu ON a2.bindRlFk = bu.id | 
			
		
	
		
			
				
					|  |  |  |  |         left join basic_bussiness_type on a1.action = basic_bussiness_type.action | 
			
		
	
		
			
				
					|  |  |  |  |         LEFT JOIN io_order_invoice ioi ON a1.billNo = ioi.orderIdFk | 
			
		
	
		
			
				
					|  |  |  |  |         left join auth_warehouse aw on aw.code = a1.fromInvCode | 
			
		
	
		
			
				
					|  |  |  |  |                      left join auth_warehouse aw2 on aw2.code = a3.fromInvCode | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             a1.status = 7 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="orderIdFk != null and orderIdFk != ''"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -79,9 +76,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="spec != null and spec != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND a2.spec like concat('%', #{spec}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="fromOutName != null and fromOutName != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND aw2.name like concat('%', #{fromOutName}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="fromCorp != null and fromCorp != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND a1.fromCorp = #{fromCorp} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |