From ee0f5508286d907319a4408101ad068ff7456cba Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 9 Apr 2025 15:59:14 +0800 Subject: [PATCH] feat : rank --- app/Model/Sku.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Model/Sku.php b/app/Model/Sku.php index 0842c11..54fe1d1 100644 --- a/app/Model/Sku.php +++ b/app/Model/Sku.php @@ -90,6 +90,7 @@ class Sku extends Model ->whereIn('spu_id',$spuIds) ->where('is_del',GoodCode::SKU_IS_NO_DEL) ->where('saleable',GoodCode::LISTING) + ->where('is_add_staple_food',GoodCode::IS_NOT_ADD_STAPLE_FOOD) ->orderBy('sort') ->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food','occupied','chef_id']) ->get();