package com.bonus.canteen.core.menu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bonus.canteen.core.menu.dto.MenuUpdateDishesModel;
import com.bonus.canteen.core.menu.entity.MenuMaterialDishes;
import com.bonus.canteen.core.menu.mapper.MenuMaterialDishesMapper;
import com.bonus.canteen.core.menu.service.MenuMaterialDishesService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuMaterialDishesServiceImpl extends ServiceImpl<MenuMaterialDishesMapper, MenuMaterialDishes> implements MenuMaterialDishesService {
   private static final Logger log = LoggerFactory.getLogger(MenuMaterialDishesServiceImpl.class);

   @Override
   public List<MenuUpdateDishesModel> selectDishesList(List<Long> materialIds) {
      return ((MenuMaterialDishesMapper)this.baseMapper).selectDishesList(materialIds);
   }
}
