['project_id', 'executor', 'contacts', 'contact_information', 'project_role', 'position', 'follow_date', 'follow_type', 'theme', 'action_description', 'project_assurance', 'follow_status', 'follow_stage', 'notes', 'next_follow_up_date', 'ceate_time'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/11/14 10:49 */ public function lists(): array { return ProjectFollowUp::where($this->searchWhere) ->field(['id', 'project_id', 'executor', 'contacts', 'contact_information', 'project_role', 'position', 'follow_date', 'follow_type', 'theme', 'action_description', 'project_assurance', 'follow_status', 'follow_stage', 'notes', 'next_follow_up_date', 'ceate_time']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2023/11/14 10:49 */ public function count(): int { return ProjectFollowUp::where($this->searchWhere)->count(); } }