修改市级云仓商品查询条件
This commit is contained in:
parent
85a848dcdd
commit
37b29b9f82
@ -26,7 +26,7 @@ class ProductCreate
|
|||||||
//市级云仓
|
//市级云仓
|
||||||
$cityMerchant = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id', Merchant::TypePlatform)->find();
|
$cityMerchant = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id', Merchant::TypePlatform)->find();
|
||||||
if ($cityMerchant) {
|
if ($cityMerchant) {
|
||||||
$where = ['mer_id' => $cityMerchant['mer_id']];
|
$where = ['mer_id' => $cityMerchant['mer_id'], 'is_del' => 0];
|
||||||
if ($product['bar_code'] != '' && in_array($product['product_type'], [0, 98]) && $product['spec_type'] == 0) {
|
if ($product['bar_code'] != '' && in_array($product['product_type'], [0, 98]) && $product['spec_type'] == 0) {
|
||||||
$where['bar_code'] = $product['bar_code'];
|
$where['bar_code'] = $product['bar_code'];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user