['company_id'], ]; } /** * @notes 获取项目管理--参建单位联系人列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/03/07 11:50 */ public function lists(): array { return ManageCompanyContacts::where($this->searchWhere) ->field(['id', 'company_id', 'name', 'duties', 'telephone', 'mobile', 'email', 'fax']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取项目管理--参建单位联系人数量 * @return int * @author likeadmin * @date 2024/03/07 11:50 */ public function count(): int { return ManageCompanyContacts::where($this->searchWhere)->count(); } }