From cbe1c0e0a3091f721e3b3671afe9a097fea24d91 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 12 Jan 2024 18:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Model/Task.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index 027d05c..0dc7765 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -546,6 +546,10 @@ class Task extends CommonModel }elseif($type==2){ $comments='reject'; $data['status']=2; + $code= TaskStages::where('project_code',$task['project_code'])->where('name','进行中')->where('deleted',0)->value('code'); + if(!$code){ + throw new Exception('任务列表CODE不存在', 1); + } self::name('task')->where('id',$task['id'])->update($data); }elseif($type==3){ $comments='add';