['project_id'], ]; } /** * @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:42 */ public function lists(): array { return ProjectEstimate::where($this->searchWhere) ->field(['id', 'org_id', 'department_id', 'project_id', 'customer_demand_id', 'estimate_source', 'create_user', 'quotation_date', 'invoice_type', 'technician', 'estimate_amount']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取项目概算数量 * @return int * @author likeadmin * @date 2023/11/24 21:42 */ public function count(): int { return ProjectEstimate::where($this->searchWhere)->count(); } }