|
|
@@ -85,7 +85,7 @@ class StoreProduct extends BaseModel
|
|
|
$model = $model->where('store_name|keyword|id', 'LIKE', "%$where[store_name]%");
|
|
|
}
|
|
|
if (isset($where['bar_code']) && $where['bar_code'] != '') {
|
|
|
- $product_id = StoreProductAttrValue::where('bar_code', $where['bar_code'])->value('product_id');
|
|
|
+ $product_id = StoreProductAttrValue::where('bar_code', $where['bar_code'])->column('product_id');
|
|
|
if ($product_id) {
|
|
|
$where['product_id'] = $product_id;
|
|
|
} else {
|