wesmiler 1 тиждень тому
батько
коміт
0993e0c190
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      app/Services/Common/BalanceLogService.php

+ 5 - 0
app/Services/Common/BalanceLogService.php

@@ -102,6 +102,11 @@ class BalanceLogService extends BaseService
             $where['a.type'] = $type;
         }
 
+        $accountType = isset($params['account_type'])? $params['account_type'] : 0;
+        if($accountType>0){
+            $where['a.account_type'] = $accountType;
+        }
+
        return $this->model->with(['member'])->from("balance_logs as a")
             ->leftJoin('member as b','b.id','=','a.user_id')
             ->where($where)