feat : catering

This commit is contained in:
2025-03-11 10:16:18 +08:00
parent e3ecd93b2d
commit d9f52ac755
7 changed files with 69 additions and 12 deletions

View File

@@ -34,6 +34,7 @@ class CycleListService extends CateringBaseService
{
$cycleCateringLogs = $this->orderOptionCateringLogModel
->where('cycle_id',$this->cycleId)
->where('kitchen_id',$this->kitchenId)
->select(['site_id','quantity','status','id'])
->get();
@@ -51,6 +52,7 @@ class CycleListService extends CateringBaseService
{
$count = $this->orderOptionCateringLogModel
->where('cycle_id',$this->cycleId)
->where('kitchen_id',$this->kitchenId)
->sum('quantity') ?? 0;
return $this->return->success('success',['count' => $count]);