package com.bonus.canteen.core.menu.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.menu.entity.MenuDishesStyle;
import com.bonus.canteen.core.menu.vo.MenuDishesStylePageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MenuDishesStyleMapper extends BaseMapper<MenuDishesStyle> {
   @Select({"select style_id,style_name,crby,crtime,upby,uptime from menu_dishes_style ${ew.customSqlSegment}"})
   Page<MenuDishesStylePageVO> selectStylePage(Page<MenuDishesStylePageVO> page, @Param("ew") LambdaQueryWrapper<MenuDishesStyle> queryWrapper);
}
