|  |  | @ -5,11 +5,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         select io_order_detail_code.*, |  |  |  |         select io_order_detail_code.*, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.bzgg, |  |  |  |         bp.bzgg, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.prepnUnit, |  |  |  |         bp.prepnUnit, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.prepnSpec, |  |  |  |         bc.name supName, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         (select `name` from basic_corp where erpId = io_order_detail_code.supId) supName |  |  |  |         bp.prepnSpec | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         from io_order_detail_code |  |  |  |         from io_order_detail_code | 
			
		
	
		
		
			
				
					
					|  |  |  |                      left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk |  |  |  |                      left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk | 
			
		
	
		
		
			
				
					
					|  |  |  |                      left join basic_products bp on bp.uuid = bu.uuid |  |  |  |                      left join basic_products bp on bp.uuid = bu.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                      left join basic_corp bc on bc.erpId = io_order_detail_code.supId | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="orderIdFk != null and orderIdFk != ''"> |  |  |  |             <if test="orderIdFk != null and orderIdFk != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND orderIdFk = #{orderIdFk} |  |  |  |                 AND orderIdFk = #{orderIdFk} | 
			
		
	
	
		
		
			
				
					|  |  | 
 |