|  |  | @ -107,7 +107,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest" |  |  |  |     <select id="filterListOr" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT stock_order.* ,inv_warehouse.name invName, iws.name subInvName ,basic_bustype_local.name |  |  |  |         SELECT stock_order.* ,inv_warehouse.name invName, iws.name subInvName ,basic_bustype_local.name | 
			
		
	
		
		
			
				
					
					|  |  |  |         billTypeName,iws2.name fromSubInvName,auth_dept.name deptName FROM stock_order |  |  |  |         billTypeName,iws2.name fromSubInvName,auth_dept.name deptName,auth_user.employeeName reviewUserName FROM | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         stock_order | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join basic_bustype_local on stock_order.billType = basic_bustype_local.action |  |  |  |         left join basic_bustype_local on stock_order.billType = basic_bustype_local.action | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse ON stock_order.locStorageCode = inv_warehouse.`code` |  |  |  |         LEFT JOIN inv_warehouse ON stock_order.locStorageCode = inv_warehouse.`code` | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse_sub ON stock_order.locStorageCode = inv_warehouse.`code` |  |  |  |         LEFT JOIN inv_warehouse_sub ON stock_order.locStorageCode = inv_warehouse.`code` | 
			
		
	
	
		
		
			
				
					|  |  | @ -115,6 +116,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN inv_warehouse_sub iws2 ON stock_order.fromSubInvCode = iws2.`code` |  |  |  |         LEFT JOIN inv_warehouse_sub iws2 ON stock_order.fromSubInvCode = iws2.`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` | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join auth_dept on stock_order.dept =auth_dept.code |  |  |  |         left join auth_dept on stock_order.dept =auth_dept.code | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         left join auth_user on stock_order.reviewUser = auth_user.id | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="id != '' and id!=null"> |  |  |  |             <if test="id != '' and id!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and stock_order.id =#{id} |  |  |  |                 and stock_order.id =#{id} | 
			
		
	
	
		
		
			
				
					|  |  | @ -286,7 +288,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="listOrderPrint" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest" |  |  |  |     <select id="listOrderPrint" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.sale.admin.entity.inout.StockOrderPrintEntity"> |  |  |  |             resultType="com.glxp.sale.admin.entity.inout.StockOrderPrintEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT stock_order.*, stock_order.remark orderRemark,stock_order_detail.productId, |  |  |  |         SELECT stock_order.*, stock_order.remark orderRemark,stock_order_detail.productId, | 
			
		
	
		
		
			
				
					
					|  |  |  |         stock_order_detail.productName, |  |  |  |         stock_order_detail.productName,auth_user.employeeName reviewUserName, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         stock_order_detail.spec, stock_order_detail.batchNo, stock_order_detail.productDate, |  |  |  |         stock_order_detail.spec, stock_order_detail.batchNo, stock_order_detail.productDate, | 
			
		
	
		
		
			
				
					
					|  |  |  |         stock_order_detail.expireDate, stock_order_detail.count, stock_order_detail.sweepCount, |  |  |  |         stock_order_detail.expireDate, stock_order_detail.count, stock_order_detail.sweepCount, | 
			
		
	
		
		
			
				
					
					|  |  |  |         stock_order_detail.ylqxzcrbarmc,stock_order_detail.manufactory, stock_order_detail.zczbhhzbapzbh, |  |  |  |         stock_order_detail.ylqxzcrbarmc,stock_order_detail.manufactory, stock_order_detail.zczbhhzbapzbh, | 
			
		
	
	
		
		
			
				
					|  |  | @ -306,6 +308,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         left JOIN basic_products on basic_products.uuid = basic_udirel.uuid |  |  |  |         left JOIN basic_products on basic_products.uuid = basic_udirel.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join auth_dept on stock_order.dept = auth_dept.`code` |  |  |  |         left join auth_dept on stock_order.dept = auth_dept.`code` | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join thr_products on basic_udirel.mainId = thr_products.`code` |  |  |  |         left join thr_products on basic_udirel.mainId = thr_products.`code` | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         left join auth_user on stock_order.reviewUser = auth_user.id | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="id != '' and id!=null"> |  |  |  |             <if test="id != '' and id!=null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and stock_order.id =#{id} |  |  |  |                 and stock_order.id =#{id} | 
			
		
	
	
		
		
			
				
					|  |  | 
 |