feat : catering

This commit is contained in:
2025-03-14 10:05:12 +08:00
parent 3aa241350c
commit 747e37fc86
11 changed files with 210 additions and 18 deletions

View File

@@ -111,4 +111,19 @@ class Site extends Model
return $res->toArray();
}
/**
* @param int $kitchenId
* @return Builder[]|Collection
*/
public function getListByKitchenId(int $kitchenId): Collection|array
{
return $this
->where('kitchen_id',$kitchenId)
->where('is_del',SiteCode::SITE_NO_DEL)
->where('status',SiteCode::SITE_ENABLE)
->orderBy('sequence')
->select(['name','id','delivered_id','sequence'])
->get();
}
}