| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -16,7 +16,7 @@ class TestController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						public function index() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							//test
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$ids = Order::all(['id AS order_id', 'product_ids', 'agent_id', 'agent_product_id']); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$ids = Order::orderBy('id')->get(['id AS order_id', 'product_ids', 'agent_id', 'agent_product_id']); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							foreach ($ids as $v) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$item = Product::query()->whereIn('id', explode(',', $v['product_ids'])) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									->orderBy('id')->get(['id AS product_id', 'supplier_id'])->toArray(); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |