| | |
| | | ) esc |
| | | LEFT JOIN exam_subject_option eso ON esc.id = eso.subject_choices_id |
| | | </select> |
| | | <select id="getList" resultType="org.springblade.modules.exam.vo.ExamPaperVO"> |
| | | SELECT * FROM ksxt_exam |
| | | where 1=1 |
| | | <if test="vo.examTime != null and vo.examTime != ''"> |
| | | AND DATE_FORMAT(start_time,'%Y-%m-%d') = DATE_FORMAT(#{vo.examTime},'%Y-%m-%d') |
| | | </if> |
| | | ORDER BY start_time DESC |
| | | </select> |
| | | <select id="getLatest" resultType="org.springblade.modules.exam.vo.ExamPaperVO"> |
| | | SELECT * FROM ksxt_exam |
| | | where 1=1 |
| | | <if test="vo.examTime != null and vo.examTime != ''"> |
| | | AND DATE_FORMAT(start_time,'%Y-%m-%d') = DATE_FORMAT(#{vo.examTime},'%Y-%m-%d') |
| | | </if> |
| | | ORDER BY start_time DESC |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | |
| | | </mapper> |