智慧保安后台管理-外网项目备份
guoshilong
2023-12-23 ffba4c1baea0c7cedd2a70cfc56101fb0b58da25
src/main/java/org/springblade/modules/exam/mapper/ExamPaperMapper.xml
@@ -602,6 +602,16 @@
        <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>