['bid_document_examination_id', 'project_id'], ]; } /** * @notes 获取投标结果列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/12/02 14:54 */ public function lists(): array { return BidResult::where($this->searchWhere) ->field(['id', 'bid_document_examination_id', 'project_id', 'is_successful', 'bidder', 'bidder_amount', 'bidder_amount_daxie']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取投标结果数量 * @return int * @author likeadmin * @date 2023/12/02 14:54 */ public function count(): int { return BidResult::where($this->searchWhere)->count(); } }