mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix dashboard month income
This commit is contained in:
parent
8dc19ee67b
commit
c3e924036a
@ -20,7 +20,7 @@ class StatController extends Controller
|
|||||||
'data' => [
|
'data' => [
|
||||||
'month_income' => Order::where('created_at', '>=', strtotime(date('Y-m-1')))
|
'month_income' => Order::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '<', time())
|
->where('created_at', '<', time())
|
||||||
->where('status', 3)
|
->whereIn('status', [3, 4])
|
||||||
->sum('total_amount'),
|
->sum('total_amount'),
|
||||||
'month_register_total' => User::where('created_at', '>=', strtotime(date('Y-m-1')))
|
'month_register_total' => User::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '<', time())
|
->where('created_at', '<', time())
|
||||||
|
Loading…
Reference in New Issue
Block a user