This commit is contained in:
mkm 2023-08-15 17:09:17 +08:00
parent 227468a8f8
commit 9122fa5e32
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class InformationController extends BaseApiController
$extend=$task['extend']; $extend=$task['extend'];
$extend['informationg_demand']=$res['id']; $extend['informationg_demand']=$res['id'];
$task->extend=json_encode($extend); $task->extend=json_encode($extend);
$task->status=3;
$task->save(); $task->save();
} }

View File

@ -13,6 +13,7 @@ class TaskController extends BaseApiController{
$where[]=['company_id','=',$this->userInfo['company_id']]; $where[]=['company_id','=',$this->userInfo['company_id']];
}else{ }else{
$where[]=['director_uid','=',$this->userId]; $where[]=['director_uid','=',$this->userId];
$where[]=['status','=',1];
} }
$res=Task::where($where) $res=Task::where($where)
->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend']) ->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])