['AppId', 'Status', 'Area'], 'between' => ['LastDatetime', 'StartDatetime'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/03/14 17:45 */ public function lists(): array { $appid = env('app.appid', 'daodao'); return ConfigFiles::where($this->searchWhere) ->where("AppId", $appid) ->field(['Id', 'AppId', 'ConfigFileUrl', 'ConfigFileVersion', 'ConfigFileIsZip', 'ApkVersion', 'IosVersion', 'AbVersion', 'ConfigExt', 'LastDatetime', 'StartDatetime', 'Status', 'Area']) ->limit($this->limitOffset, $this->limitLength) ->order(['Id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/03/14 17:45 */ public function count(): int { return ConfigFiles::where($this->searchWhere)->count(); } }