This commit is contained in:
mkm 2023-08-15 16:40:33 +08:00
parent 21b3362946
commit 9f03758b0e

View File

@ -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'])