更新查询商品
This commit is contained in:
parent
28d04b0bf2
commit
3621c9183d
@ -51,11 +51,13 @@ class CloudWarehouse extends BaseController
|
|||||||
$search = [
|
$search = [
|
||||||
'street_id' => $params['street_code'],
|
'street_id' => $params['street_code'],
|
||||||
'type_id' => $typeTownSupplyChainId,
|
'type_id' => $typeTownSupplyChainId,
|
||||||
'category_id' => $params['category_id'],
|
|
||||||
'status' => 1,
|
'status' => 1,
|
||||||
'is_del' => 0,
|
'is_del' => 0,
|
||||||
'mer_state' => 1,
|
'mer_state' => 1,
|
||||||
];
|
];
|
||||||
|
if (!empty($params['category_id'])) {
|
||||||
|
$search['category_id'] = $params['category_id'];
|
||||||
|
}
|
||||||
$merchantIds = $this->merchantDao->search($search)->column('mer_id');
|
$merchantIds = $this->merchantDao->search($search)->column('mer_id');
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
if (empty($merchantIds)) {
|
if (empty($merchantIds)) {
|
||||||
@ -65,11 +67,13 @@ class CloudWarehouse extends BaseController
|
|||||||
$entryWhere = [
|
$entryWhere = [
|
||||||
'street_id' => $params['street_code'],
|
'street_id' => $params['street_code'],
|
||||||
'type_id' => $typeCloudWarehouseId,
|
'type_id' => $typeCloudWarehouseId,
|
||||||
'category_id' => $params['category_id'],
|
|
||||||
'status' => 1,
|
'status' => 1,
|
||||||
'is_del' => 0,
|
'is_del' => 0,
|
||||||
'mer_state' => 1,
|
'mer_state' => 1,
|
||||||
];
|
];
|
||||||
|
if (!empty($params['category_id'])) {
|
||||||
|
$entryWhere['category_id'] = $params['category_id'];
|
||||||
|
}
|
||||||
$where['entry_mer_id'] = $this->merchantDao->search($entryWhere)->value('mer_id');
|
$where['entry_mer_id'] = $this->merchantDao->search($entryWhere)->value('mer_id');
|
||||||
$where['keyword'] = $params['keyword'];
|
$where['keyword'] = $params['keyword'];
|
||||||
$where['mer_ids'] = $merchantIds;
|
$where['mer_ids'] = $merchantIds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user