mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: fix stat
This commit is contained in:
parent
7907f455ce
commit
38e25e9039
@ -47,12 +47,12 @@ class StatController extends Controller
|
||||
->where('created_at', '<', strtotime(date('Y-m-1')))
|
||||
->whereNotIn('status', [0, 2])
|
||||
->sum('total_amount'),
|
||||
'commission_month_payout' => Order::where('commission_balance' ,'!=', NULL)
|
||||
'commission_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
||||
->where('created_at', '<', time())
|
||||
->sum('commission_balance'),
|
||||
'commission_last_month_payout' => Order::where('commission_balance' ,'!=', NULL)
|
||||
->sum('actual_commission_balance'),
|
||||
'commission_last_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
||||
->where('created_at', '<', strtotime(date('Y-m-1')))
|
||||
->sum('commission_balance'),
|
||||
->sum('actual_commission_balance'),
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user