From 3c8e94af36e9f83485414f14a0e136e19c7a5137 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期三, 27 十一月 2024 09:03:45 +0800
Subject: [PATCH] 修改

---
 exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml
index 19c708b..c557339 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThStudyDetailMapper.xml
+++ b/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
 

--
Gitblit v1.9.2