fix: stat

This commit is contained in:
tokumeikoi
2021-03-13 01:03:53 +09:00
parent a03125ee6a
commit e4b76a705f
5 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ class V2BoardStatistics extends Command
$startAt = strtotime('-1 day', $endAt);
$builder = Order::where('created_at', '>=', $startAt)
->where('created_at', '<', $endAt)
->whereIn('status', '!=', [0, 2]);
->whereNotIn('status', [0, 2]);
$orderCount = $builder->count();
$orderAmount = $builder->sum('total_amount');
$builder = $builder->where('commission_balance', '!=', 0)