|
|
@@ -157,7 +157,7 @@ class TradeService extends BaseService
|
|
|
->orderBy('a.id', 'desc');
|
|
|
|
|
|
$totalModdel = $model;
|
|
|
- $totalModdel->whereIn('status',[3,4]);
|
|
|
+ $totalModdel->whereIn('a.status',[3,4]);
|
|
|
$counts = ['total' => 0, 'service_fee' => 0, 'bonus' => 0, 'fee' => 0];
|
|
|
$total = $totalModdel->sum('a.real_price');
|
|
|
$counts['total'] = intval($total);
|