教育训练处考试制证系统后端
heheng
2025-05-19 3a762add44449332d6d379e361698850f6066e16
exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml
@@ -37,6 +37,13 @@
        <if test="query.endTime != null"><!-- 结束时间检索 -->
            and date_format(d.create_time,'%y-%m-%d') &lt;= date_format(#{query.endTime},'%y-%m-%d')
        </if>
        <if test="query.status == 0"></if>
        <if test="query.status == 1">
            and (d.duration - TIMESTAMPDIFF(SECOND, start_time, finish_time)) &lt;= 30
        </if>
        <if test="query.status == 2">
            and (d.duration-TIMESTAMPDIFF(SECOND, start_time, finish_time)) &gt; 30
        </if>
        ORDER BY
        d.id DESC