mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: statistics service
This commit is contained in:
parent
ae0fd63929
commit
c6fbb89452
@ -74,7 +74,7 @@ class StatisticalService {
|
||||
$commissionLogBuilder = CommissionLog::where('created_at', '>=', $startAt)
|
||||
->where('created_at', '<', $endAt);
|
||||
$data['commission_count'] = $commissionLogBuilder->count();
|
||||
$data['commission_amount'] = $commissionLogBuilder->sum('get_amount');
|
||||
$data['commission_total'] = $commissionLogBuilder->sum('get_amount');
|
||||
$data['register_count'] = User::where('created_at', '>=', $startAt)
|
||||
->where('created_at', '<', $endAt)
|
||||
->count();
|
||||
|
Loading…
Reference in New Issue
Block a user