From 957a86ec2a8e79e272d7b3d7187528eaf254e717 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 12 Jan 2024 17:02:35 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index e4a434e..c292fb6 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -525,9 +525,8 @@ class Task extends CommonModel $data['exchange_list']=''; } TaskMember::inviteMember($executorCode, $taskCode, 1); - $code= TaskStages::where('project_code',$task['project_code'])->where('name','验收中')->where('deleted',0)->value('code'); + $code= TaskStages::where('project_code',$task['project_code'])->where('name','进行中')->where('deleted',0)->value('code'); $data['stage_code']=$code; - $data['status']=4; self::where('id',$task['id'])->update($data); }else{ $code= TaskStages::where('project_code',$task['project_code'])->where('name','已完成')->where('deleted',0)->value('code'); @@ -544,8 +543,10 @@ class Task extends CommonModel self::name('task')->where('id',$task['id'])->update($data); }elseif($type==3){ $comments='add'; - // $data['status']=4; - // self::name('task')->where('id',$task['id'])->update($data); + $code= TaskStages::where('project_code',$task['project_code'])->where('name','验收中')->where('deleted',0)->value('code'); + $data['stage_code']=$code; + $data['status']=4; + self::name('task')->where('id',$task['id'])->update($data); } self::taskHook(getCurrentMember()['code'], $taskCode, $comments, '', 1, '', $comment, '', $mentions);