| | |
| | | <mapper namespace="org.springblade.modules.exam.mapper.ExamSubjectChoicesMapper"> |
| | | |
| | | <!--选择题分页信息--> |
| | | <select id="selectExamSubjectChoicesPage" resultMap="ExamSubjectChoicesInfoMap"> |
| | | <select id="selectExamSubjectChoicesPage" resultType="org.springblade.modules.exam.vo.ExamSubjectChoicesVO"> |
| | | SELECT |
| | | esc.*, |
| | | eso.id eso_id,eso.subject_choices_id,eso.option_name,eso.option_content,eso.creator, |
| | | eso.create_date,eso.modifier,eso.modify_date,eso.del_flag,eso.application_code,eso.tenant_code |
| | | esc.* |
| | | FROM |
| | | exam_subject_choices esc |
| | | left join |
| | | exam_subject_option eso |
| | | on |
| | | esc.id = eso.subject_choices_id |
| | | WHERE |
| | | 1=1 |
| | | <if test="examSubjectChoices.subjectName!=null and examSubjectChoices.subjectName!=''"> |
| | | and esc.subject_name like concat('%', #{examSubjectChoices.subjectName},'%') |
| | | </if> |
| | | <if test="examSubjectChoices.choicesType!=null and examSubjectChoices.choicesType!=''"> |
| | | and choices_type = #{examSubjectChoices.choicesType} |
| | | </if> |
| | | </select> |
| | | |
| | | |