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