['download_type', 'download_fun', 'params', 'name', 'down_num', 'status', 'expiration_time', 'file_url', 'generate_status', 'clear_status', 'admin_id', 'createtime', 'updatetime'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/11/18 13:31 */ public function lists(): array { return Export::where($this->searchWhere) ->field(['id', 'download_type', 'download_fun', 'params', 'name', 'down_num', 'status', 'expiration_time', 'file_url', 'generate_status', 'clear_status', 'admin_id', 'createtime', 'updatetime']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/11/18 13:31 */ public function count(): int { return Export::where($this->searchWhere)->count(); } }