['org_name', 'fddbr', 'telephone', 'jgzcdz'], ]; } /** * @notes 获取市场经营--分支机构备案列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/04/05 10:00 */ public function lists(): array { return MarketingBranchFiling::withoutField('create_time,update_time,delete_time')->where($this->searchWhere) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function ($data) { $data['filing_type_text'] = $data->filing_type; }) ->toArray(); } /** * @notes 获取市场经营--分支机构备案数量 * @return int * @author likeadmin * @date 2024/04/05 10:00 */ public function count(): int { return MarketingBranchFiling::where($this->searchWhere)->count(); } }