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