查镇级供应链 采购/销售金额

This commit is contained in:
chenbo 2023-12-25 18:16:31 +08:00
parent 07a982fd68
commit 6b7cc23adf

View File

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