新增套餐、套餐分页查询、根据分类id查询菜品

This commit is contained in:
slhaf
2024-09-12 20:02:21 +08:00
parent 5419e321c8
commit e223fbb1a8
19 changed files with 209 additions and 14 deletions

View File

@@ -22,7 +22,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.function.Consumer;
@Service
@Slf4j
@@ -153,4 +152,14 @@ public class DishServiceImpl implements DishService {
dishFlavorMapper.insertBatch(flavors);
}
}
/**
* 根据分类id查询菜品
* @param categoryId
* @return
*/
@Override
public List<Dish> selectByCategoryId(String categoryId) {
return dishMapper.selectByCategoryId(categoryId);
}
}