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