feat : rank

This commit is contained in:
2025-04-09 16:12:22 +08:00
parent aac53d8264
commit cd9c5afef2
3 changed files with 7 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ class AddStapleFoodInfoService extends BaseService
$spuInfo = $this->spuModel->getListByCycleIdAndType($cycleId, $kitchenId,GoodCode::SPU_TYPE_MEAL);
if (empty($spuInfo)) return $this->return->success('success', ['add_food_info' => []]);
$spuIds = array_column($spuInfo->toArray(), 'spu_id');
$spuIds = array_column($spuInfo->toArray(), 'id');
// $data = $this->goodCache->getMealGoodList();
$skuInfo = $this->skuModel->getAddStapleFoodListBySpuIds($spuIds);
if (empty($skuInfo)) return $this->return->success('success', ['add_food_info' => []]);