['company_name', 'company_user', 'company_phone', 'company_address'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/08/28 13:37 */ public function lists(): array { return Platform::where($this->searchWhere)->where('is_del',1) ->field(['id', 'company_name', 'company_user', 'company_phone', 'company_address', 'is_del']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2023/08/28 13:37 */ public function count(): int { return Platform::where($this->searchWhere)->where('is_del',1)->count(); } }