diff --git a/app/Controller/Admin/CateringController.php b/app/Controller/Admin/CateringController.php index 00aa481..019878b 100644 --- a/app/Controller/Admin/CateringController.php +++ b/app/Controller/Admin/CateringController.php @@ -100,6 +100,8 @@ class CateringController /** * 完成检测 * @return array + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface */ #[RequestMapping(path: "meal/catering/finish_check", methods: "GET")] #[Scene(scene: "meal_catering_finish_check")] diff --git a/app/Service/Admin/Catering/Option/CycleListService.php b/app/Service/Admin/Catering/Option/CycleListService.php index 544d05d..c1e63dd 100644 --- a/app/Service/Admin/Catering/Option/CycleListService.php +++ b/app/Service/Admin/Catering/Option/CycleListService.php @@ -10,8 +10,7 @@ declare(strict_types=1); namespace App\Service\Admin\Catering\Option; -use App\Constants\Common\OrderCode; -use App\Model\OrderMealCateringLog; +use App\Constants\Admin\CateringCode; use App\Model\OrderOptionCateringLog; use App\Service\Admin\Catering\CateringBaseService; use Hyperf\Di\Annotation\Inject; @@ -54,7 +53,7 @@ class CycleListService extends CateringBaseService $count = $this->orderOptionCateringLogModel ->where('cycle_id',$this->cycleId) ->where('kitchen_id',$this->kitchenId) - ->where('status',OrderCode::CATERING_STATUS_UNDERWAY) + ->where('status',CateringCode::CATERING_STATUS_UNDERWAY) ->sum('quantity') ?? 0; return $this->return->success('success',['count' => $count]);