“djh”
2024-11-27 3c8e94af36e9f83485414f14a0e136e19c7a5137
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