教育训练处考试制证系统后端
heheng
2025-01-22 8663780ea617fd30ddf74c80085d40580179a7e9
exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml
@@ -39,10 +39,10 @@
        </if>
        <if test="query.status == 0"></if>
        <if test="query.status == 1">
            and TIMESTAMPDIFF(SECOND, start_time, finish_time) = d.duration
            and (d.duration - TIMESTAMPDIFF(SECOND, start_time, finish_time)) &lt;= 30
        </if>
        <if test="query.status == 2">
            and TIMESTAMPDIFF(SECOND, start_time, finish_time) &lt; d.duration
            and (d.duration-TIMESTAMPDIFF(SECOND, start_time, finish_time)) &gt; 30
        </if>
        ORDER BY
        d.id DESC