From 6b7cc23adfcc103fa84d386449a4fa56f30b30fa Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 25 Dec 2023 18:16:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E9=95=87=E7=BA=A7=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E9=93=BE=20=E9=87=87=E8=B4=AD/=E9=94=80=E5=94=AE=E9=87=91?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 0168f1cd..55242641 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -42,9 +42,7 @@ class Statistics extends BaseController } $where[] = ['is_del', '=', 0]; $where[] = ['status', '=', 1]; - // 镇级供应链 type_code = TypeTownSupplyChain - $merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find(); - $where[] = ['type_id', '=', $merchantType['mer_type_id']]; + $where[] = ['type_id', '=', $parmas['mer_type_id']]; $count = Db::name('merchant')->where($where)->count(); return app('json')->success(['count' => $count]); }