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

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

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