diff --git a/app/admin/lists/store_product/StoreProductLists.php b/app/admin/lists/store_product/StoreProductLists.php index daf76e63f..67df7f89e 100644 --- a/app/admin/lists/store_product/StoreProductLists.php +++ b/app/admin/lists/store_product/StoreProductLists.php @@ -185,7 +185,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa $class_all = $this->request->get('class_all'); if ($class_all) { if (count($class_all) == 1) { - $query->where('top_category_id', $class_all[0]); + $query->where('top_cate_id', $class_all[0]); } elseif (count($class_all) == 2) { $query->where(function ($query) use ($class_all) { $query->where('two_cate_id', $class_all[1])->whereOr('cate_id', $class_all[1]);