package com.ruoyi.school.paper.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.school.paper.domain.DbQuestionBankTestPaper;
import com.ruoyi.school.paper.domain.bo.TestPaperAnswerBo;
import com.ruoyi.school.paper.domain.vo.DbQuestionBankTestPaperVo;
import com.ruoyi.school.paper.domain.vo.TestQuestionItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 试卷题库主Mapper接口
 *
 * @author zyf
 * @date 2023-07-20
 */
@Mapper
public interface DbQuestionBankTestPaperMapper extends BaseMapperPlus<DbQuestionBankTestPaperMapper, DbQuestionBankTestPaper, DbQuestionBankTestPaperVo> {


    /**
     * 查询试卷所有考题
     *
     * @return 试卷
     */
    Page<TestQuestionItemVo> selectTestPaperQuestion(IPage<Object> iPage, @Param("condition")TestPaperAnswerBo request);

}
