<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="org.springblade.modules.exam.mapper.ExamSubjectOptionMapper">
|
|
<!--选择题选项分页信息-->
|
<select id="selectExamSubjectOptionPage" resultType="org.springblade.modules.exam.vo.ExamSubjectOptionVO">
|
SELECT
|
*
|
FROM
|
exam_subject_option
|
WHERE
|
1=1
|
<if test="examSubjectOption.optionName!=null and examSubjectOption.optionName!=''">
|
and option_name like concat('%', #{examSubjectOption.optionName},'%')
|
</if>
|
</select>
|
|
|
|
|
<!--选择题选项详情信息-->
|
<select id="selectExamSubjectOptionInfo" resultType="org.springblade.modules.exam.vo.ExamSubjectOptionVO">
|
SELECT
|
*
|
FROM
|
exam_subject_option
|
WHERE
|
1=1
|
<if test="examSubjectOption.id!=null">
|
and id = #{examSubjectOption.id}
|
</if>
|
</select>
|
</mapper>
|