update: statistics

This commit is contained in:
v2board
2023-05-03 21:34:29 +08:00
parent d9bd54cbc5
commit 76f4a1764b
4 changed files with 31 additions and 33 deletions

View File

@ -52,11 +52,7 @@ class StatisticalService {
$startAt = strtotime(date('Y-m-d'));
$endAt = strtotime('+1 day', $startAt);
}
$data = [
'record_type' => 'd',
'paid_rate' => 0,
'record_at' => $startAt
];
$data = [];
$data['order_count'] = Order::where('created_at', '>=', $startAt)
->where('created_at', '<', $endAt)
->count();