|
|
@@ -117,13 +117,17 @@ public class StoreCuisineServiceImpl extends ServiceImpl<StoreCuisineMapper, Sto
|
|
|
|
|
|
/**
|
|
|
* 获取所有单品名称(cuisine_type = 1),用于添加套餐
|
|
|
+ *
|
|
|
+ * @param storeId 门店ID
|
|
|
+ * @return 已上架且审核通过的单品列表
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<StoreCuisine> getSingleName() {
|
|
|
+ public List<StoreCuisine> getSingleName(Integer storeId) {
|
|
|
return lambdaQuery()
|
|
|
+ .eq(StoreCuisine::getStoreId, storeId) // 根据门店ID查询
|
|
|
.eq(StoreCuisine::getCuisineType, 1) // 类型为单品
|
|
|
- .eq(StoreCuisine::getShelfStatus,1) // 上架
|
|
|
- .eq(StoreCuisine::getStatus,1) // 审核通过
|
|
|
+ .eq(StoreCuisine::getShelfStatus, 1) // 上架
|
|
|
+ .eq(StoreCuisine::getStatus, 1) // 审核通过
|
|
|
.list();
|
|
|
}
|
|
|
|