diff --git a/app/api/controller/TaskController.php b/app/api/controller/TaskController.php index 4ecbfaf2..c037d351 100644 --- a/app/api/controller/TaskController.php +++ b/app/api/controller/TaskController.php @@ -998,7 +998,7 @@ class TaskController extends BaseApiController public function taskList() { - $list = Task::where('director_uid', $this->userId)->with(['directorInfo']) + $list = Task::where('director_uid', $this->userId)->where('status', 2)->with(['directorInfo']) ->order(['id' => 'desc']) ->select()->toArray(); return $this->success('ok', $list);