package com.bonus.core.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.core.menu.entity.MenuEvaluaDetail;
import com.bonus.core.menu.vo.MenuEvaluateDishesVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface MenuEvaluaDetailMapper extends BaseMapper<MenuEvaluaDetail> {
//   @Select({"select detail_id from menu_evalua_detail ${ew.customSqlSegment}"})
//   Long selectDetailIdByWrapper(@Param("ew") Wrapper<MenuEvaluaDetail> wrapper);
//
//   @Select({"select avg(star_level) from menu_evalua_detail ${ew.customSqlSegment}"})
//   Integer selectAvgStarLevelByWrapper(@Param("ew") Wrapper<MenuEvaluaDetail> wrapper);
//
//   @Select({"select md.dishes_name, med.star_level from menu_evalua_detail med left join menu_dishes md on med.meal_id = md.dishes_id where med.evalua_id = #{evaluaId}"})
//   List<MenuEvaluateDishesVO> selectDishesDetail(@Param("evaluaId") Long evaluaId);

   List<MenuEvaluateDishesVO> selectDishesDetailByEvaluaIds(@Param("evaluaIds") Set<Long> evaluaIds);
//
//   Page<AndroidDishesEvaluateVO> selectAndroidDishesEvaluatePage(Page<?> page, @Param("content") AndroidDishesEvaluateDTO content);
}
