update 用户邀请数据
This commit is contained in:
parent
1c23965383
commit
e068593846
|
@ -218,9 +218,7 @@ class TaskController extends BaseAdminController
|
|||
{
|
||||
$param = $this->request->param();
|
||||
[$page, $limit] = $this->getPage();
|
||||
$list = Task::where('company_id', $param['company_id'])
|
||||
|
||||
->with(['directorInfo'])
|
||||
$list = Task::with(['directorInfo'])
|
||||
->page($page, $limit)
|
||||
->order(['id' => 'desc'])
|
||||
->select();
|
||||
|
@ -247,9 +245,10 @@ class TaskController extends BaseAdminController
|
|||
'title' => $params['title'],
|
||||
'money' => 0,
|
||||
'type' => 0,
|
||||
'status' => $params['status'],
|
||||
'content' => $params['content'],
|
||||
'start_time' => time(),
|
||||
'end_time' => $params['end_time'],
|
||||
'end_time' => strtotime($params['end_time']),
|
||||
'director_uid' => $params['director_uid'], // 指派给负责人
|
||||
'create_time' => time(),
|
||||
'update_time' => time(),
|
||||
|
|
|
@ -996,4 +996,11 @@ class TaskController extends BaseApiController
|
|||
}
|
||||
}
|
||||
|
||||
public function taskList()
|
||||
{
|
||||
$list = Task::where('director_uid', $this->userId)->with(['directorInfo'])
|
||||
->order(['id' => 'desc'])
|
||||
->select()->toArray();
|
||||
return $this->success('ok', $list);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue