setter
							parent
							
								
									be35042bea
								
							
						
					
					
						commit
						67fd07d14a
					
				| 
						 | 
				
			
			@ -1115,7 +1115,7 @@ class OrderRepository extends Repository
 | 
			
		|||
     */
 | 
			
		||||
    public function orderCount(int $accountId): array
 | 
			
		||||
    {
 | 
			
		||||
        $statusList = ['order_placed', 'makeing', 'shipped'];
 | 
			
		||||
        $statusList = [self::STATUS_ORDER_PLACED, self::STATUS_MAKEING, self::STATUS_SHIPPED, self::STATUS_ARRIVED];
 | 
			
		||||
        $data       = Order::where('account_id', $accountId)
 | 
			
		||||
            ->whereIn('status', $statusList)
 | 
			
		||||
            ->group('status')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue