<?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.simulateexam.mapper.SimulateExamRecordMapper">
|
|
<!--自定义查询模拟考试记录分页数据-->
|
<select id="selectSimulateExamRecordPage" resultType="org.springblade.modules.simulateexam.vo.SimulateExamRecordVO">
|
select * from simulate_exam_record
|
where 1=1
|
<if test="simulateExamRecord.idCardNo!=null and simulateExamRecord.idCardNo!=''">
|
and id_card_no=#{simulateExamRecord.idCardNo}
|
</if>
|
</select>
|
|
|
<!--查询当前人员当前模拟考试的考试题目信息-->
|
<select id="getSimulateExamRefreshList" resultType="org.springblade.modules.exam.vo.ExamSubjectChoicesVO">
|
select
|
id,
|
category_id categoryId,
|
subject_name subjectName,
|
choices_type choicesType,
|
answer,
|
score,
|
analysis,
|
tktype
|
from exam_subject_choices
|
where id in
|
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
#{item}
|
</foreach>
|
order by field(id,
|
<foreach collection="list" index="index" item="item" separator=",">
|
#{item}
|
</foreach>
|
)
|
</select>
|
|
</mapper>
|