master
wangxinglong 2022-06-14 14:15:55 +08:00
parent be35042bea
commit 67fd07d14a
1 changed files with 1 additions and 1 deletions

View File

@ -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')