update
This commit is contained in:
parent
4049eae84a
commit
d1493ac92c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user