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

import com.baomidou.mybatisplus.extension.service.IService;
import com.bonus.canteen.core.menu.entity.MenuRecipeDetail;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface MenuRecipeDetailService extends IService<MenuRecipeDetail> {
   List<MenuRecipeDetail> getByRecipeIdAndDatesAndIntervalId(Long recipeId, Set<LocalDate> dates, Integer mealtimeType);

   MenuRecipeDetail getByRecipeIdAndApplyDateAndIntervalId(Long recipeId, LocalDate applyDate, Integer mealtimeType);

   Map<Long, Set<LocalDate>> selectApplyDateListByRecipeId(List<Long> recipeIds);
}
