['theme'], ]; } /** * @notes 获取解决方案列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/11/24 21:32 */ public function lists(): array { return CustomerDemandSolution::where($this->searchWhere) ->field(['id', 'org_id', 'department_id', 'project_id', 'customer_demand_id', 'theme', 'submission_time']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取解决方案数量 * @return int * @author likeadmin * @date 2023/11/24 21:32 */ public function count(): int { return CustomerDemandSolution::where($this->searchWhere)->count(); } }