Merge pull request 'preview' (#21) from preview into master
Reviewed-on: #21
This commit is contained in:
commit
56419e1f13
@ -192,7 +192,6 @@ class SpuRepository extends BaseRepository
|
|||||||
unset($where['mer_id'], $where['page']);
|
unset($where['mer_id'], $where['page']);
|
||||||
$page = 1;
|
$page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$entryMerId = $where['entry_mer_id'] ?? '';
|
$entryMerId = $where['entry_mer_id'] ?? '';
|
||||||
unset($where['entry_mer_id']);
|
unset($where['entry_mer_id']);
|
||||||
$query = $this->dao->search($where);
|
$query = $this->dao->search($where);
|
||||||
|
@ -63,18 +63,21 @@ class CloudWarehouse extends BaseController
|
|||||||
if (empty($merchantIds)) {
|
if (empty($merchantIds)) {
|
||||||
return app('json')->success(['count' => 0, 'list' => []]);
|
return app('json')->success(['count' => 0, 'list' => []]);
|
||||||
}
|
}
|
||||||
$typeCloudWarehouseId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeCloudWarehouse'])->value('mer_type_id');
|
// 隐藏镇级云仓
|
||||||
$entryWhere = [
|
// $typeCloudWarehouseId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeCloudWarehouse'])->value('mer_type_id');
|
||||||
'street_id' => $params['street_code'],
|
// $entryWhere = [
|
||||||
'type_id' => $typeCloudWarehouseId,
|
// 'street_id' => $params['street_code'],
|
||||||
'status' => 1,
|
// 'type_id' => $typeCloudWarehouseId,
|
||||||
'is_del' => 0,
|
// 'status' => 1,
|
||||||
'mer_state' => 1,
|
// 'is_del' => 0,
|
||||||
];
|
// 'mer_state' => 1,
|
||||||
if (!empty($params['category_id'])) {
|
// ];
|
||||||
$entryWhere['category_id'] = $params['category_id'];
|
// 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['entry_mer_id'] = 0;
|
||||||
$where['keyword'] = $params['keyword'];
|
$where['keyword'] = $params['keyword'];
|
||||||
$where['mer_ids'] = $merchantIds;
|
$where['mer_ids'] = $merchantIds;
|
||||||
$where['product_type'] = $params['product_type'];
|
$where['product_type'] = $params['product_type'];
|
||||||
|
@ -144,17 +144,14 @@ class StoreSpu extends BaseController
|
|||||||
if ($where['action']) unset($where['product_type']);
|
if ($where['action']) unset($where['product_type']);
|
||||||
$currentMerchant = Db::name('merchant')->where('mer_id',$id)->field('category_id,street_id')->find();
|
$currentMerchant = Db::name('merchant')->where('mer_id',$id)->field('category_id,street_id')->find();
|
||||||
$typeTownSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTownSupplyChain'])->value('mer_type_id');
|
$typeTownSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeTownSupplyChain'])->value('mer_type_id');
|
||||||
$where['mer_array_id'][] = $id;
|
$merIdArray = Db::name('merchant')
|
||||||
$mer_id = Db::name('merchant')
|
|
||||||
->where('street_id',$currentMerchant['street_id'])
|
->where('street_id',$currentMerchant['street_id'])
|
||||||
->where('mer_state',1)
|
->where('mer_state',1)
|
||||||
->where('status',1)
|
->where('status',1)
|
||||||
->where('category_id',$currentMerchant['category_id'])
|
->where('category_id',$currentMerchant['category_id'])
|
||||||
->where('type_id', $typeTownSupplyChainId)
|
->where('type_id', $typeTownSupplyChainId)
|
||||||
->value('mer_id');
|
->column('mer_id');
|
||||||
if ($mer_id) {
|
$where['mer_array_id'] = $merIdArray;
|
||||||
$where['mer_array_id'][] = $mer_id;
|
|
||||||
}
|
|
||||||
// $where['mer_id'] = $mer_id;
|
// $where['mer_id'] = $mer_id;
|
||||||
$where['entry_mer_id'] = $id;
|
$where['entry_mer_id'] = $id;
|
||||||
$where['is_gift_bag'] = 0;
|
$where['is_gift_bag'] = 0;
|
||||||
|
1
public/static/js/index.7f0cc918.js
Normal file
1
public/static/js/index.7f0cc918.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/static/js/pages-admin-orderList-index.2b6d5010.js
Normal file
1
public/static/js/pages-admin-orderList-index.2b6d5010.js
Normal file
File diff suppressed because one or more lines are too long
1
public/static/js/pages-gather-gather.2aaed7a0.js
Normal file
1
public/static/js/pages-gather-gather.2aaed7a0.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
public/static/js/pages-index-index.f37aca63.js
Normal file
8
public/static/js/pages-index-index.f37aca63.js
Normal file
File diff suppressed because one or more lines are too long
1
public/static/js/pages-margin-margin.31aefe87.js
Normal file
1
public/static/js/pages-margin-margin.31aefe87.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/static/js/pages-order_details-index.0af68dbe.js
Normal file
1
public/static/js/pages-order_details-index.0af68dbe.js
Normal file
File diff suppressed because one or more lines are too long
1
public/static/js/pages-order_details-stay.a49765f3.js
Normal file
1
public/static/js/pages-order_details-stay.a49765f3.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/static/js/pages-product-basicSet.1ea88b6b.js
Normal file
1
public/static/js/pages-product-basicSet.1ea88b6b.js
Normal file
File diff suppressed because one or more lines are too long
1
public/static/js/pages-product-list-index.ce085aa5.js
Normal file
1
public/static/js/pages-product-list-index.ce085aa5.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user