From 8b1adf11af2cc7544cd4c3c6deb9cccac2526179 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 4 May 2024 10:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lists/cost_project/CostApprovedProjectLists.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/adminapi/lists/cost_project/CostApprovedProjectLists.php b/app/adminapi/lists/cost_project/CostApprovedProjectLists.php index d828109a6..a7ca9bf5f 100644 --- a/app/adminapi/lists/cost_project/CostApprovedProjectLists.php +++ b/app/adminapi/lists/cost_project/CostApprovedProjectLists.php @@ -125,13 +125,10 @@ public function count(): int { $status = $this->request->get('status', 0); - $business_nature = $this->request->get('business_nature', 0); $where=[ - ['status', '=', $status] + ['status', '=', $status], + ['contract_type', '=', 0] ]; - if($business_nature>0){ - $where[]=['business_nature','=',$business_nature]; - } return MarketingContract::where($this->searchWhere)->where($where)->where('review_status', 1)->count(); }