From 3764507e399c80632c039bf245856300f8af0954 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 13 Nov 2023 11:24:22 +0800 Subject: [PATCH] fixed --- app/api/controller/TaskController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); // 可能要判断预存金是否满足