feat : check
This commit is contained in:
@@ -10,6 +10,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Admin\Catering\Meal;
|
||||
|
||||
use App\Constants\Admin\CateringCode;
|
||||
use App\Constants\Common\OrderCode;
|
||||
use App\Exception\ErrException;
|
||||
use App\Model\OrderMealCateringLog;
|
||||
use App\Model\Sku;
|
||||
@@ -66,6 +68,7 @@ class CycleListService extends CateringBaseService
|
||||
$count = $this->orderMealCateringLogModel
|
||||
->where('cycle_id',$this->cycleId)
|
||||
->where('sku_id',$skuInfo->id)
|
||||
->where('status',CateringCode::CATERING_STATUS_UNDERWAY)
|
||||
->sum('quantity') ?? 0;
|
||||
|
||||
return $this->return->success('success',['count' => $count]);
|
||||
|
||||
Reference in New Issue
Block a user