package yangtz.cs.liu.campus.mapper.schoolcalendar;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yangtz.cs.liu.campus.domain.schoolcalendar.SchoolCalendar;
import yangtz.cs.liu.campus.vo.schoolcalendar.SchoolCalendarVo;

import java.util.Date;
import java.util.List;

@Mapper
public interface SchoolCalendarMapper extends BaseMapper<SchoolCalendar> {
    public List<SchoolCalendar> selectSchoolCalendarList(SchoolCalendar schoolCalendar);

    //校历列表
    public List<SchoolCalendarVo> select(SchoolCalendar schoolCalendar);


    /**
     * 公众号：获取当前时间所在的校历
     * @param date
     * @return
     */
    List<SchoolCalendar> getNowCalendar(@Param("date") Date date);

    /**
     * pc:获取当前时间所在校历
     * */
    List<SchoolCalendar> getNowCalendarList(@Param("date") Date date);
}
