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.MenuDishesEffect;
import com.bonus.canteen.core.menu.vo.MenuDishesEffectPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MenuDishesEffectMapper extends BaseMapper<MenuDishesEffect> {
   @Select({"select effect_id,effect_name,crby,crtime,upby,uptime from menu_dishes_effect ${ew.customSqlSegment}"})
   Page<MenuDishesEffectPageVO> selectEffectPage(Page<MenuDishesEffectPageVO> page, @Param("ew") LambdaQueryWrapper<MenuDishesEffect> queryWrapper);
}
