feat : coupon

This commit is contained in:
2025-03-21 09:51:12 +08:00
parent e85b9095ab
commit 8ebea2ff90
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ class Sku extends Model
->where('is_del',GoodCode::SKU_IS_NO_DEL)
->where('saleable',GoodCode::LISTING)
->orderBy('sort')
->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num'])
->select(['id','spu_id','title','image_ids','price','param','extra','total_stock','surplus_stock','order_num','is_add_staple_food'])
->get();
}

View File

@@ -83,7 +83,7 @@ class Spu extends Model
->where('type',$type)
->where('saleable',GoodCode::LISTING)
->orderBy('sort')
->select(['id','cycle_id','chef_id','title','title','sub_title','category_id','is_add_staple_food'])
->select(['id','cycle_id','chef_id','title','title','sub_title','category_id'])
->get();
}
}