diff --git a/app/api/controller/TaskController.php b/app/api/controller/TaskController.php index 7513f2907..4de420f35 100644 --- a/app/api/controller/TaskController.php +++ b/app/api/controller/TaskController.php @@ -39,7 +39,7 @@ class TaskController extends BaseApiController // $where[] = ['type', '=', 33]; // $where[] = ['director_uid', '=', $this->userId]; // } -// $where[] = ['company_id', '=', $this->userInfo['company_id']]; + $where[] = ['company_id', '=', $this->userInfo['company_id']]; } if ($userCompanyInfo['company_type'] == 41) { @@ -76,7 +76,6 @@ class TaskController extends BaseApiController ->page($page, 25) ->order(['id' => 'desc', 'status' => 'asc']) ->select()->toArray(); - foreach ($res as $k => $item) { if ($item['type'] == 33) { $company = Company::where('id', $item['company_id'])->field('id,deposit,company_money,user_id,day_count,company_type,province,city,area,street,village,brigade,responsible_area')->find(); // 可能要判断预存金是否满足