package org.springblade.modules.exam.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import org.apache.ibatis.annotations.Param;
|
import org.springblade.modules.exam.entity.ExamSubjectChoices;
|
import org.springblade.modules.exam.vo.ExamSubjectChoicesVO;
|
|
import java.util.List;
|
|
/**
|
* 选择题Mapper 接口
|
* @author zhongrj
|
*/
|
public interface ExamSubjectChoicesMapper extends BaseMapper<ExamSubjectChoices> {
|
|
|
/**
|
* 自定义分页
|
*
|
* @param page 分页
|
* @param examSubjectChoices 实体
|
* @return
|
*/
|
List<ExamSubjectChoicesVO> selectExamSubjectChoicesPage(IPage page, @Param("examSubjectChoices") ExamSubjectChoicesVO examSubjectChoices);
|
|
/**
|
* 查询试卷题目
|
* @param page
|
* @param examSubjectChoices
|
* @return
|
*/
|
List<ExamSubjectChoicesVO> getEexPaperChoices(IPage page, ExamSubjectChoicesVO examSubjectChoices);
|
|
/**
|
* 详情
|
*
|
* @param examSubjectChoices 选择题信息对象
|
*/
|
ExamSubjectChoicesVO selectExamSubjectChoicesInfo(@Param("examSubjectChoices") ExamSubjectChoices examSubjectChoices);
|
|
boolean updateChoicesValue(String id,String value);
|
|
/**
|
* 根据 题目id 删除选项
|
* @param id 题目id
|
* @return
|
*/
|
int removeBySubjectId(@Param("id")Long id);
|
}
|