This commit is contained in:
weiz 2024-03-20 16:07:02 +08:00
parent 95bc111fdf
commit 1c59962d6f
3 changed files with 3 additions and 4 deletions

View File

@ -124,7 +124,7 @@ class BidBuyBiddingDocumentLogic extends BaseLogic
*/ */
public static function detail($params): array public static function detail($params): array
{ {
$data = BidBuyBiddingDocument::field('id,project_id,bid_decision_id,bid_document_no,invite_tenders_company_name,bid_company_name,buyer,amount,buy_date,approve_id')->findOrEmpty($params['id']); $data = BidBuyBiddingDocument::withoutField('create_time,update_time,delete_time')->findOrEmpty($params['id']);
$project = Project::field('custom_id,name,project_code')->where('id',$data['project_id'])->findOrEmpty(); $project = Project::field('custom_id,name,project_code')->where('id',$data['project_id'])->findOrEmpty();
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty(); $custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
$bid_decision = BidBiddingDecision::field('code,bidding_project_fund_source,bidding_time,bid_type,is_margin,margin_amount,bid_opening_date,margin_amount_return_date,bid_project_overview,project_desc,annex')->where('id',$data['bid_decision_id'])->findOrEmpty(); $bid_decision = BidBiddingDecision::field('code,bidding_project_fund_source,bidding_time,bid_type,is_margin,margin_amount,bid_opening_date,margin_amount_return_date,bid_project_overview,project_desc,annex')->where('id',$data['bid_decision_id'])->findOrEmpty();

View File

@ -173,8 +173,7 @@ class BidDocumentExaminationLogic extends BaseLogic
*/ */
public static function detail($params): array public static function detail($params): array
{ {
$field = 'id,code,project_id,buy_bidding_document_id,technical_protocol_deviation,protocol_deviation_handling_plan,technical_review_annex,tax_rate,pay_type,pay_rate,business_contract_deviation,business_contract_deviation_handling_plan,business_contract_deviation_annex,approve_id'; $data = BidDocumentExamination::withoutField('create_time,update_time,delete_time')->findOrEmpty($params['id']);
$data = BidDocumentExamination::field($field)->findOrEmpty($params['id']);
$project = Project::field('custom_id,name')->where('id',$data['project_id'])->findOrEmpty(); $project = Project::field('custom_id,name')->where('id',$data['project_id'])->findOrEmpty();
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty(); $custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
$bid_buy_doc = BidBuyBiddingDocument::field('bid_decision_id,bid_document_no,buyer,invite_tenders_company_name,bid_company_name,amount,buy_date')->where('id',$data['buy_bidding_document_id'])->findOrEmpty(); $bid_buy_doc = BidBuyBiddingDocument::field('bid_decision_id,bid_document_no,buyer,invite_tenders_company_name,bid_company_name,amount,buy_date')->where('id',$data['buy_bidding_document_id'])->findOrEmpty();

View File

@ -121,7 +121,7 @@ class BidResultLogic extends BaseLogic
*/ */
public static function detail($params): array public static function detail($params): array
{ {
$data = BidResult::field('id,bid_document_examination_id,project_id,is_successful,bidder_company,bidder_amount,bid_summary,annex,add_user,update_user,create_time,update_time')->findOrEmpty($params['id']); $data = BidResult::withoutField('create_time,update_time,delete_time')->findOrEmpty($params['id']);
$project = Project::field('name,project_code,custom_id')->where('id',$data['project_id'])->findOrEmpty(); $project = Project::field('name,project_code,custom_id')->where('id',$data['project_id'])->findOrEmpty();
$custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty(); $custom = Custom::field('name')->where('id',$project['custom_id'])->findOrEmpty();
$bid_document_examination = BidDocumentExamination::field('code,buy_bidding_document_id')->where('id',$data['bid_document_examination_id'])->findOrEmpty(); $bid_document_examination = BidDocumentExamination::field('code,buy_bidding_document_id')->where('id',$data['bid_document_examination_id'])->findOrEmpty();