package com.sdut.labex.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdut.labex.entity.BorrowInfo;
import com.sdut.labex.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author springforest
 * @description 针对表【borrowInfo(借用记录)】的数据库操作Mapper
 * @createDate 2023-06-12 08:07:15
 * @Entity com.sdut.labex.entity.Borrowinfo
 */
@Mapper
public interface BorrowInfoMapper extends BaseMapper<BorrowInfo> {
    public Page<BorrowInfo> queryBorrowInfoByOptions(Page<BorrowInfo> page, BorrowInfo borrowInfo);

    public void addTimeTable(Map<String, Object> map);

    public List<Room> notBorrowedYet(@Param("timeList") List<String> timeList, @Param("date") String date);
}




