mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update: statistics service
This commit is contained in:
		| @@ -74,7 +74,7 @@ class StatisticalService { | |||||||
|         $commissionLogBuilder = CommissionLog::where('created_at', '>=', $startAt) |         $commissionLogBuilder = CommissionLog::where('created_at', '>=', $startAt) | ||||||
|             ->where('created_at', '<', $endAt); |             ->where('created_at', '<', $endAt); | ||||||
|         $data['commission_count'] = $commissionLogBuilder->count(); |         $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) |         $data['register_count'] = User::where('created_at', '>=', $startAt) | ||||||
|             ->where('created_at', '<', $endAt) |             ->where('created_at', '<', $endAt) | ||||||
|             ->count(); |             ->count(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user