APPLE 3 лет назад
Родитель
Сommit
22594a1011
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/TradeService.php

+ 1 - 1
app/Services/Common/TradeService.php

@@ -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);