feat: place order

This commit is contained in:
2025-01-23 16:56:24 +08:00
parent b2f96de226
commit aadcf6c661
11 changed files with 504 additions and 111 deletions

View File

@@ -58,7 +58,7 @@ class Site extends Model
* @param int $kitchenId
* @return int
*/
public function disableStatusByKitchenId(int $kitchenId)
public function disableStatusByKitchenId(int $kitchenId): int
{
return $this
->where('kitchen_id',$kitchenId)
@@ -96,4 +96,15 @@ class Site extends Model
->where('delivered_id',$driverId)
->get(['id','name', 'sequence']);
}
/**
* @return Builder[]|Collection
*/
public function getAllSiteList(): Collection|array
{
return $this
->where('is_del',SiteCode::SITE_NO_DEL)
->where('status',SiteCode::SITE_ENABLE)
->get(['id','name','kitchen_id','city_id','address','lng','lat']);
}
}