alias('pay_list') ->field('pay_list.*,user.user_name') ->join($join); if(!empty($condition)){ $this->where($condition); } if(!empty($order)){ $this->order($order); } if($is_count){ return $this->count(); } return $this->page($page,$pageSize)->select(); } }