From d1493ac92cc45e0ec292cc3fec84bb9ffaab80b4 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Mon, 19 Feb 2024 15:07:44 +0800 Subject: [PATCH] update --- app/adminapi/logic/bid/BidDocumentExaminationLogic.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/adminapi/logic/bid/BidDocumentExaminationLogic.php b/app/adminapi/logic/bid/BidDocumentExaminationLogic.php index 6d5177fd8..9c7d6070d 100644 --- a/app/adminapi/logic/bid/BidDocumentExaminationLogic.php +++ b/app/adminapi/logic/bid/BidDocumentExaminationLogic.php @@ -124,12 +124,15 @@ class BidDocumentExaminationLogic extends BaseLogic $data['project_desc'] = $bid_decision['project_desc']; $data['annex'] = $bid_decision['annex']; $data['total_amount'] = BidDocumentExaminationDetail::where('bid_document_examination_id',$data['id'])->sum('sale_amount'); + $approve_data = FlowApprove::where('id',$data['approve_id'])->findOrEmpty(); + $data['approve_check_status'] = $approve_data['check_status']; return $data->toArray(); } public static function approve($params,$admin_id): bool{ $data = BidDocumentExamination::where('id',$params['id'])->findOrEmpty(); - if(!empty($data['approve_id'])){ + $approve_data = FlowApprove::where('id',$data['approve_id'])->findOrEmpty(); + if(!empty($data['approve_id']) && $approve_data['check_status'] != 3){ self::setError('当前内容存在审核信息,请勿重复提交'); return false; }