This commit is contained in:
weiz 2024-04-15 09:43:20 +08:00
parent 89c6696c1a
commit 2c2b7af5c3

View File

@ -35,7 +35,7 @@
$date = explode(',', $params['bid_open_date']); $date = explode(',', $params['bid_open_date']);
$where[] = ['bid_open_date', 'between', [strtotime($date[0] . ' 00:00:00'), strtotime($date[1] . ' 23:59:59')]]; $where[] = ['bid_open_date', 'between', [strtotime($date[0] . ' 00:00:00'), strtotime($date[1] . ' 23:59:59')]];
} }
$lists = BidResult::field('bid_result_code,bid_info_id,quotation,bid_open_date,manager')->where($where) $lists = MarketingBidResult::field('bid_result_code,bid_info_id,quotation,bid_open_date,manager')->where($where)
->page($page_no, $page_size)->order('id desc') ->page($page_no, $page_size)->order('id desc')
->select()->each(function ($data) { ->select()->each(function ($data) {
$bid_info = MarketingBidInfo::field('bid_evaluation_id,bid_head')->where('id', $data['bid_info_id'])->findOrEmpty(); $bid_info = MarketingBidInfo::field('bid_evaluation_id,bid_head')->where('id', $data['bid_info_id'])->findOrEmpty();