fix: stat

This commit is contained in:
tokumeikoi
2021-03-12 01:24:50 +09:00
parent 58a63ae819
commit a03125ee6a
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', [3, 4]);
->whereIn('status', '!=', [0, 2]);
$orderCount = $builder->count();
$orderAmount = $builder->sum('total_amount');
$builder = $builder->where('commission_balance', '!=', 0)