新增镇级供应链列表查询全部参数
This commit is contained in:
parent
2b971dab9d
commit
bc548f2afa
@ -75,7 +75,7 @@ class CloudWarehouse extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function town()
|
public function town()
|
||||||
{
|
{
|
||||||
$params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page']);
|
$params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page','cate_pid']);
|
||||||
$search = [
|
$search = [
|
||||||
'street_id' => $params['street_code'],
|
'street_id' => $params['street_code'],
|
||||||
'type_id' =>[Merchant::TypeStore,Merchant::TypeTownSupplyChain],
|
'type_id' =>[Merchant::TypeStore,Merchant::TypeTownSupplyChain],
|
||||||
@ -101,6 +101,9 @@ class CloudWarehouse extends BaseController
|
|||||||
if (!empty($params['category_id'])) {
|
if (!empty($params['category_id'])) {
|
||||||
$where['cate_id'] = $params['category_id'];
|
$where['cate_id'] = $params['category_id'];
|
||||||
}
|
}
|
||||||
|
if($params['cate_pid']!=''){
|
||||||
|
$where['cate_pid'] = $params['cate_pid'];
|
||||||
|
}
|
||||||
$products = $this->spuRepository->getApiSearch($where, $page, $limit, false,true);
|
$products = $this->spuRepository->getApiSearch($where, $page, $limit, false,true);
|
||||||
return app('json')->success($products);
|
return app('json')->success($products);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user