查镇级供应链 采购/销售金额
This commit is contained in:
parent
07a982fd68
commit
6b7cc23adf
@ -42,9 +42,7 @@ class Statistics extends BaseController
|
|||||||
}
|
}
|
||||||
$where[] = ['is_del', '=', 0];
|
$where[] = ['is_del', '=', 0];
|
||||||
$where[] = ['status', '=', 1];
|
$where[] = ['status', '=', 1];
|
||||||
// 镇级供应链 type_code = TypeTownSupplyChain
|
$where[] = ['type_id', '=', $parmas['mer_type_id']];
|
||||||
$merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find();
|
|
||||||
$where[] = ['type_id', '=', $merchantType['mer_type_id']];
|
|
||||||
$count = Db::name('merchant')->where($where)->count();
|
$count = Db::name('merchant')->where($where)->count();
|
||||||
return app('json')->success(['count' => $count]);
|
return app('json')->success(['count' => $count]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user