// +---------------------------------------------------------------------- namespace app\admin\model\user; use traits\ModelTrait; use basic\ModelBasic; /** * 用户充值记录 * Class UserRecharge * @package app\admin\model\user */ class UserRecharge extends ModelBasic { use ModelTrait; public static function systemPage($where){ $model = new self; $model = $model->alias('A'); if($where['order_id'] != '') { $model = $model->where('A.order_id|B.nickname|A.id','like',"%$where[order_id]%"); } $model = $model->where('A.paid',1); $model = $model->field('A.*,B.nickname'); $model = $model->join('__USER__ B','A.uid = B.uid','RIGHT'); $model = $model->order('A.id desc'); return self::page($model,$where); } }