update: order queue

This commit is contained in:
tokumeikoi
2021-09-04 16:31:25 +09:00
parent c2577e37c4
commit c80d93fa25
8 changed files with 67 additions and 43 deletions

View File

@ -78,16 +78,14 @@ class V2boardStatistics extends Command
private function statServer()
{
$endAt = strtotime(date('Y-m-d'));
$startAt = strtotime('-1 day', $endAt);
$startAt = strtotime(date('Y-m-d'));
$statistics = ServerLog::select([
'server_id',
'method as server_type',
DB::raw("sum(u) as u"),
DB::raw("sum(d) as d"),
])
->where('log_at', '>=', $startAt)
->where('log_at', '<', $endAt)
->where('log_at', $startAt)
->groupBy('server_id', 'method')
->get()
->toArray();