param(); [$page, $limit] = $this->getPage(); if($this->userInfo['admin_id']!=00){ $where[]=['company_id','=',$this->userInfo['company_id']]; } $res=Task::where($where) ->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend']) ->page($page,25) ->order(['id' => 'desc']) ->select() ->toArray(); return $this->success('ok', $res); } }