['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/27 18:14 */ public function lists(): array { return BidBiddingDecision::where($this->searchWhere) ->field(['id', 'project_id', 'project_estimation', 'bidding_project_fund_source', 'bidding_time', 'buy_bid_document_date', 'bid_type', 'competitor', 'is_margin', 'margin_amount', 'bid_opening_date', 'margin_amount_return_date', 'is_internal_resources', 'project_assurance']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取投标决策数量 * @return int * @author likeadmin * @date 2023/11/27 18:14 */ public function count(): int { return BidBiddingDecision::where($this->searchWhere)->count(); } }