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