wesmiler hace 1 semana
padre
commit
0993e0c190
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)