<?php
|
|
namespace app\operations\model\plus\vip;
|
|
use app\common\model\plus\vip\Apply as ApplyModel;
|
|
/**
|
* VIP专区申请模型
|
*/
|
class Apply extends ApplyModel
|
{
|
/**
|
* 获取列表
|
*/
|
public function getList($search)
|
{
|
$model = $this->with(['user', 'vipUser'])
|
->order(['create_time' => 'desc']);
|
|
if (!empty($search['nick_name'])) {
|
$model = $model->where('user.nickName', 'like', '%' . $search['nick_name'] . '%');
|
}
|
|
if (isset($search['apply_status']) && $search['apply_status'] > -1) {
|
$model = $model->where('apply_status', '=', $search['apply_status']);
|
}
|
|
return $model->paginate($search['list_rows']);
|
}
|
}
|