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);