From 1deeb0f961aa2014b5007925dccb9d074459492a Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 19 Sep 2023 10:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/approve/ApproveLists.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/app/api/lists/approve/ApproveLists.php b/app/api/lists/approve/ApproveLists.php index b9e9dbfbd..0a11451b4 100644 --- a/app/api/lists/approve/ApproveLists.php +++ b/app/api/lists/approve/ApproveLists.php @@ -17,16 +17,26 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface */ public function setSearch(): array { - return [ - '=' =>['type', 'check_status'] - ]; + $param = $this->request->param(); + if ($param['status'] == 0) { + return [ + '=' =>['type'] + ]; + } else { + return [ + '=' =>['type', 'check_status'] + ]; + } + + + } public function queryWhere() { $where = []; - $param = $this->request->param(); + // if (isset($param['type']) && $param['type'] == 2) { $adminId = User::where(['id' => $this->userId])->with('company')->value('admin_id'); $where[] = ['check_admin_ids', '=', $adminId]; // 只有片区经理才能查看