mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	update: commission stats
This commit is contained in:
		| @@ -53,10 +53,10 @@ class V2boardStatistics extends Command | |||||||
|             ->whereNotIn('status', [0, 2]); |             ->whereNotIn('status', [0, 2]); | ||||||
|         $orderCount = $orderBuilder->count(); |         $orderCount = $orderBuilder->count(); | ||||||
|         $orderAmount = $orderBuilder->sum('total_amount'); |         $orderAmount = $orderBuilder->sum('total_amount'); | ||||||
|         $commissionBuilder = Order::where('created_at', '>=', $startAt) |         $commissionLogBuilder = CommissionLog::where('created_at', '>=', $startAt) | ||||||
|             ->where('created_at', '<', $endAt); |             ->where('created_at', '<', $endAt); | ||||||
|         $commissionCount = $commissionBuilder->count(); |         $commissionCount = $commissionLogBuilder->count(); | ||||||
|         $commissionAmount = $commissionBuilder->sum('actual_commission_balance'); |         $commissionAmount = $commissionLogBuilder->sum('get_amount'); | ||||||
|         $data = [ |         $data = [ | ||||||
|             'order_count' => $orderCount, |             'order_count' => $orderCount, | ||||||
|             'order_amount' => $orderAmount, |             'order_amount' => $orderAmount, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user