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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supermarket.model.SupermarketConfig;
import com.bonus.canteen.core.supermarket.po.BusinessConfigModel;
import com.bonus.canteen.core.supermarket.vo.SupermarketConfigPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupermarketConfigMapper extends BaseMapper<SupermarketConfig> {
   List<SupermarketConfigPageVO> listConfig(Long supermarketId);

   List<Integer> listReserveWeek(@Param("supermarketId") Long supermarketId, @Param("trueConfig") Integer trueConfig);

   BusinessConfigModel getBusinessInfo(@Param("supermarketId") Long supermarketId, @Param("weekDay") Integer weekDay);
}
