mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update: fix stat
This commit is contained in:
parent
3d1d4ac9d0
commit
6503664fcc
@ -48,9 +48,11 @@ class StatController extends Controller
|
|||||||
->whereNotIn('status', [0, 2])
|
->whereNotIn('status', [0, 2])
|
||||||
->sum('total_amount'),
|
->sum('total_amount'),
|
||||||
'commission_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
'commission_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
||||||
|
->where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '<', time())
|
->where('created_at', '<', time())
|
||||||
->sum('actual_commission_balance'),
|
->sum('actual_commission_balance'),
|
||||||
'commission_last_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
'commission_last_month_payout' => Order::where('actual_commission_balance' ,'!=', NULL)
|
||||||
|
->where('created_at', '>=', strtotime('-1 month', strtotime(date('Y-m-1'))))
|
||||||
->where('created_at', '<', strtotime(date('Y-m-1')))
|
->where('created_at', '<', strtotime(date('Y-m-1')))
|
||||||
->sum('actual_commission_balance'),
|
->sum('actual_commission_balance'),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user