|
@@ -287,10 +287,10 @@ class GoodsService
|
|
|
// return json_success('暂无数据');
|
|
|
// }
|
|
|
|
|
|
- $categoryIds = SysCategory::whereIn('category_super_id', [5, 31, 32, 42, 66, 70, 72])->pluck('category_id');
|
|
|
+// $categoryIds = SysCategory::whereIn('category_super_id', [5, 31, 32, 42, 66, 70, 72])->pluck('category_id');
|
|
|
|
|
|
$goods = Goods::with('sku')
|
|
|
- ->whereIn('join_goods_category_id', $categoryIds)
|
|
|
+// ->whereIn('join_goods_category_id', $categoryIds)
|
|
|
->when($keywords != '', function ($query) use ($keywords) {
|
|
|
$query->where('goods_name', 'like', "%" . $keywords . "%");
|
|
|
})
|