|
@@ -112,6 +112,7 @@ class StoreProduct extends AuthController
|
|
|
['cate_id', ''],
|
|
['cate_id', ''],
|
|
|
['excel', 0],
|
|
['excel', 0],
|
|
|
['order', ''],
|
|
['order', ''],
|
|
|
|
|
+ ['bar_code',''],
|
|
|
[['type', 'd'], $this->request->param('type/d')],
|
|
[['type', 'd'], $this->request->param('type/d')],
|
|
|
['is_consumer', 0]
|
|
['is_consumer', 0]
|
|
|
]);
|
|
]);
|
|
@@ -890,7 +891,7 @@ class StoreProduct extends AuthController
|
|
|
|
|
|
|
|
public function product_br()
|
|
public function product_br()
|
|
|
{
|
|
{
|
|
|
- $list = StoreProductAttrValue::where('bar_code', '<', '99999')->where('volume', '>', '0')->column('product_id,bar_code,price,volume');
|
|
|
|
|
|
|
+ $list = StoreProductAttrValue::where('bar_code', '<', '99999')->where('bar_code', '>', '0')->where('volume', '>', '0')->where('volume', '<', '99999')->column('product_id,bar_code,price,volume');
|
|
|
$str = "";
|
|
$str = "";
|
|
|
foreach ($list as $v) {
|
|
foreach ($list as $v) {
|
|
|
$title = ProductModel::where('id', $v['product_id'])->value('store_name');
|
|
$title = ProductModel::where('id', $v['product_id'])->value('store_name');
|