Kirin 2 years ago
parent
commit
08dfbef738
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/controller/store/StoreProduct.php

+ 2 - 1
app/admin/controller/store/StoreProduct.php

@@ -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');