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]); }