|  |  | @ -191,7 +191,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.OrderFilterRequest" |  |  |  |     <select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.OrderFilterRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.inout.OrderEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.inout.OrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT io_order.* FROM io_order |  |  |  |         SELECT io_order.* ,inv_warehouse.name invName, inv_warehouse_sub.name subInvName ,basic_bussiness_type.name billTypeName FROM io_order | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         left join basic_bussiness_type on io_order.action = basic_bussiness_type.action | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse ON io_order.locStorageCode = inv_warehouse.`code` |  |  |  |         LEFT JOIN inv_warehouse ON io_order.locStorageCode = inv_warehouse.`code` | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code` |  |  |  |         LEFT JOIN inv_warehouse_sub ON inv_warehouse_sub.parentId = inv_warehouse.`code` | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code` |  |  |  |         LEFT JOIN inv_warehouse_user on inv_warehouse_sub.code = inv_warehouse_user.`code` | 
			
		
	
	
		
		
			
				
					|  |  | @ -200,22 +201,22 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and io_order.id =#{id} |  |  |  |                 and io_order.id =#{id} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="mainAction != '' and mainAction!=null"> |  |  |  |             <if test="mainAction != '' and mainAction!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and mainAction =#{mainAction} |  |  |  |                 and io_order.mainAction =#{mainAction} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="fromCorpId != '' and fromCorpId!=null"> |  |  |  |             <if test="fromCorpId != '' and fromCorpId!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and fromCorpId =#{fromCorpId} |  |  |  |                 and io_order.fromCorpId =#{fromCorpId} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="corpOrderId != '' and corpOrderId !=null"> |  |  |  |             <if test="corpOrderId != '' and corpOrderId !=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and corpOrderId =#{corpOrderId} |  |  |  |                 and io_order.corpOrderId =#{corpOrderId} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="action != '' and action!=null"> |  |  |  |             <if test="action != '' and action!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and action = #{action} |  |  |  |                 and io_order.action = #{action} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="action==null or action == ''"> |  |  |  |             <if test="action==null or action == ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and `action`  <![CDATA[ <> ]]> 'StockCheck' |  |  |  |                 and io_order.`action`  <![CDATA[ <> ]]> 'StockCheck' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="exportStatus != '' and exportStatus!=null"> |  |  |  |             <if test="exportStatus != '' and exportStatus!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and exportStatus = #{exportStatus} |  |  |  |                 and io_order.exportStatus = #{exportStatus} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="status != '' and status!=null and status!=10"> |  |  |  |             <if test="status != '' and status!=null and status!=10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and io_order.status = #{status} |  |  |  |                 and io_order.status = #{status} | 
			
		
	
	
		
		
			
				
					|  |  | @ -245,13 +246,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <![CDATA[  and DATE_FORMAT(actDate, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d')    ]]> |  |  |  |                 <![CDATA[  and DATE_FORMAT(actDate, '%Y-%m-%d') <= DATE_FORMAT(#{endTime}, '%Y-%m-%d')    ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="customerId != '' and customerId!=null"> |  |  |  |             <if test="customerId != '' and customerId!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and customerId =#{customerId} |  |  |  |                 and io_order.customerId =#{customerId} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createUser!=null"> |  |  |  |             <if test="createUser!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and createUser =#{createUser} |  |  |  |                 and io_order.createUser =#{createUser} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="reviewUser!=null"> |  |  |  |             <if test="reviewUser!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and reviewUser =#{reviewUser} |  |  |  |                 and io_order.reviewUser =#{reviewUser} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="userId != '' and userId!=null"> |  |  |  |             <if test="userId != '' and userId!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and (invWarehouseCode in (select code from inv_warehouse_user WHERE userId =#{userId}) or |  |  |  |                 and (invWarehouseCode in (select code from inv_warehouse_user WHERE userId =#{userId}) or | 
			
		
	
	
		
		
			
				
					|  |  | 
 |