dataRange() ->catchSearch() ->append(['is_online']) ->order($this->aliasField('shortcode'), 'desc') ->paginate(); return $res; } public function getAllList(){ $res = $this ->catchSearch() ->field('mac,name,latitude,longitude,online_time') ->append(['is_online']) ->select(); return $res; } }