['buy_bidding_document_id', 'is_need_deposit'], ]; } /** * @notes 获取标书审查列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/12/02 09:52 */ public function lists(): array { return BidDocumentExamination::where($this->searchWhere) ->field(['*'])->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function($item){ $bidBuy = BidBuyBiddingDocument::field('bid_document_no,bid_date,project_id')->where('id',$item['buy_bidding_document_id'])->findOrEmpty(); $project = Project::field('name,project_code')->where('id',$bidBuy['project_id'])->findOrEmpty(); $item['project_name'] = $project['name']; $item['project_code'] = $project['project_code']; $item['bid_document_no'] = $bidBuy['bid_document_no']; $item['bid_date'] = $bidBuy['bid_date']; return $item; }) ->toArray(); } /** * @notes 获取标书审查数量 * @return int * @author likeadmin * @date 2023/12/02 09:52 */ public function count(): int { return BidDocumentExamination::where($this->searchWhere)->count(); } }