|
@@ -64,7 +64,10 @@ class MemberBankService extends BaseService
|
|
|
if ($status > 0) {
|
|
if ($status > 0) {
|
|
|
$where['a.status'] = $status;
|
|
$where['a.status'] = $status;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ $userId = isset($params['user_id']) ? $params['user_id'] : 0;
|
|
|
|
|
+ if ($userId > 0) {
|
|
|
|
|
+ $where['a.user_id'] = $userId;
|
|
|
|
|
+ }
|
|
|
$list = $this->model->from('member_bank as a')
|
|
$list = $this->model->from('member_bank as a')
|
|
|
->where($where)
|
|
->where($where)
|
|
|
->select(['a.*'])
|
|
->select(['a.*'])
|