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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.menu.dto.MenuEvaluaOrderPageDTO;
import com.bonus.canteen.core.menu.entity.MenuEvaluaOrder;
import com.bonus.canteen.core.menu.vo.MenuEvaluaMealVO;
import com.bonus.canteen.core.menu.vo.MenuEvaluaOrderPageMealVO;
import com.bonus.canteen.core.menu.vo.MenuEvaluateOrderPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuEvaluaOrderMapper extends BaseMapper<MenuEvaluaOrder> {

   List<MenuEvaluaOrderPageMealVO> selectAllListByMeal(@Param("mealId") Long mealId, @Param("shopstallId") Long shopstallId, @Param("searchType") Integer searchType);

   MenuEvaluaMealVO selectAvgByMealAndShop(@Param("mealId") Long mealId, @Param("mealType") Integer mealType, @Param("shopstallId") Long shopstallId, @Param("delFlag") Integer delFlag);

   List<MenuEvaluateOrderPageVO> selectEvaluatePagePc(@Param("content") MenuEvaluaOrderPageDTO content);

   Integer selectHaveImageCount(Long dishesId);

   Integer selectAllCount(Long dishesId);
}
