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