更新
This commit is contained in:
parent
21b3362946
commit
9f03758b0e
@ -9,8 +9,10 @@ class TaskController extends BaseApiController{
|
||||
public function lists(){
|
||||
$param = Request()->param();
|
||||
[$page, $limit] = $this->getPage();
|
||||
if($this->userInfo['admin_id']!=00){
|
||||
if($this->userInfo['admin_id']!=0){
|
||||
$where[]=['company_id','=',$this->userInfo['company_id']];
|
||||
}else{
|
||||
$where[]=['director_uid','=',$this->userId];
|
||||
}
|
||||
$res=Task::where($where)
|
||||
->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user