更新
This commit is contained in:
parent
06cbb5f6bc
commit
b49863f994
@ -11,11 +11,9 @@ class TaskController extends BaseApiController{
|
||||
[$page, $limit] = $this->getPage();
|
||||
if($this->userInfo['admin_id']!=00){
|
||||
$where[]=['company_id','=',$this->userInfo['company_id']];
|
||||
}else{
|
||||
return $this->fail('你没有权限访问');
|
||||
}
|
||||
$res=Task::where($where)
|
||||
->field(['id', 'title', 'template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend','money'])
|
||||
->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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user