feat : catering
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user