From 597b5d2d3f350b9bcc31b044ab812ee127033831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Thu, 9 Mar 2023 19:50:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=92=E7=BB=9D=E5=90=8E=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/crm/controller/Business.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/crm/controller/Business.php b/application/crm/controller/Business.php index 75c8d41..768a634 100644 --- a/application/crm/controller/Business.php +++ b/application/crm/controller/Business.php @@ -399,13 +399,14 @@ class Business extends ApiCommon if ($businessInfo['is_end']) { return resultArray(['error' => '已结束,请勿重复提交']); } - if ($businessInfo['flow_id']) { + if ($businessInfo['flow_id'] && [$businessInfo]['check_status'] != 0) { return resultArray(['error' => '已有审批流程,请勿重复提交']); } $data = []; $data['submit_end_status'] = $is_end; $data['submit_remark'] = $remark; + $data['check_status'] = 0; if (($examineStatus != false && $examineStatus != 'false') || $examineStatus == 1) { // 审核判断(是否有符合条件的审批流) $examineFlowModel = new \app\admin\model\ExamineFlow(); @@ -451,7 +452,7 @@ class Business extends ApiCommon Message::CUSTOMER_CHECK_TO_DO, [ 'title' => $param['name'], - 'action_id' => param['business_id'], + 'action_id' => $param['business_id'], ], $send_user_id );