wupengfei 3 years ago
parent
commit
3146747987

+ 1 - 1
application/store/controller/Goods.php

@@ -30,7 +30,7 @@ class Goods extends Controller
     public function index()
     {
         $this->title = '商品管理';
-        $query = $this->_query($this->table)->where('is_deleted',0)->like('name');
+        $query = $this->_query($this->table)->where('is_deleted',0)->where(['is_integral'=>1])->like('name');
         $query->dateBetween('create_at')->order('sort desc , id desc')->page();
     }
 

+ 1 - 1
application/store/controller/IntegralGoods.php

@@ -30,7 +30,7 @@ class IntegralGoods extends Controller
     public function index()
     {
         $this->title = '商品管理';
-        $query = $this->_query($this->table)->where('is_deleted',0)->where([''])->like('name');
+        $query = $this->_query($this->table)->where('is_deleted',0)->where(['is_integral'=>1])->like('name');
         $query->dateBetween('create_at')->order('sort desc , id desc')->page();
     }