diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index 654ce57..f384e71 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -525,7 +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'); + $data['stage_code']=$code; self::where('id',$task['id'])->update($data); }else{ $code= TaskStages::where('project_code',$task['project_code'])->where('name','已完成')->where('deleted',0)->value('code');