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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bonus.canteen.core.menu.dto.MenuDishesImportFailPageDTO;
import com.bonus.canteen.core.menu.entity.MenuDishesImportFail;
import com.bonus.canteen.core.menu.mapper.MenuDishesImportFailMapper;
import com.bonus.canteen.core.menu.service.MenuDishesImportFailService;
import com.bonus.canteen.core.menu.vo.MenuDishesImportFailPageVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class MenuDishesImportFailServiceImpl extends ServiceImpl<MenuDishesImportFailMapper, MenuDishesImportFail> implements MenuDishesImportFailService {
   private static final Logger log = LoggerFactory.getLogger(MenuDishesImportFailServiceImpl.class);

   @Override
   public Page<MenuDishesImportFailPageVO> getMenuDishesImportFailPage(MenuDishesImportFailPageDTO content) {
      Page<MenuDishesImportFailPageVO> resultPage = new Page(content.getCurrent(), content.getSize());
      return ((MenuDishesImportFailMapper)this.baseMapper).selectAllListPage(resultPage, content.getFailType());
   }
}
