管理员可看所有任务

This commit is contained in:
chenbo 2023-12-18 10:50:59 +08:00
parent 9f8e86b932
commit 8354517e9c

@ -50,7 +50,7 @@ class TaskController extends BaseApiController
// $where[] = ['company_id', '=', $this->userInfo['company_id']];
}
if ($this->userInfo['admin_id'] != 0) {
$where[] = ['company_id', '=', $this->userInfo['company_id']];
$where = ['company_id', '=', $this->userInfo['company_id']];
}
if (isset($param['date_time']) && $param['date_time'] != '') {
$time = strtotime($param['date_time']);