ticket notify

This commit is contained in:
Tokumeikoi 2020-05-10 23:09:22 +08:00
parent deb12ae707
commit 0d6d10421b
3 changed files with 11 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class StatController extends Controller
'data' => [
'month_income' => Order::where('created_at', '>=', strtotime(date('Y-m-1')))
->where('created_at', '<', time())
->where('status', '3')
->where('status', 3)
->sum('total_amount'),
'month_register_total' => User::where('created_at', '>=', strtotime(date('Y-m-1')))
->where('created_at', '<', time())
@ -31,6 +31,14 @@ class StatController extends Controller
->where('invite_user_id', '!=', NULL)
->where('status', 3)
->count(),
'day_income' => Order::where('created_at', '>=', strtotime(date('Y-m-d')))
->where('created_at', '<', time())
->where('status', 3)
->sum('total_amount'),
'last_month_income' => Order::where('created_at', '>=', strtotime('-1 month', strtotime(date('Y-m-1'))))
->where('created_at', '<', strtotime(date('Y-m-1')))
->where('status', 3)
->sum('total_amount')
]
]);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long