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