feat : rank

This commit is contained in:
2025-04-09 15:59:14 +08:00
parent cf6c7fcf8e
commit ee0f550828

View File

@@ -90,6 +90,7 @@ class Sku extends Model
->whereIn('spu_id',$spuIds) ->whereIn('spu_id',$spuIds)
->where('is_del',GoodCode::SKU_IS_NO_DEL) ->where('is_del',GoodCode::SKU_IS_NO_DEL)
->where('saleable',GoodCode::LISTING) ->where('saleable',GoodCode::LISTING)
->where('is_add_staple_food',GoodCode::IS_NOT_ADD_STAPLE_FOOD)
->orderBy('sort') ->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']) ->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food','occupied','chef_id'])
->get(); ->get();