|
@@ -112,7 +112,9 @@
|
|
|
(
|
|
|
select
|
|
|
distinct tee.id, teea.id as examActivityId,tee.name, tee.mode, tee.pre_notice as preNotice, tee.pre_notice_stay_seconds as
|
|
|
- preNoticeStaySeconds, tee.post_notice as postNotice, datediff(now(), teea.start_time) as reallyTime
|
|
|
+ preNoticeStaySeconds, tee.post_notice as postNotice,
|
|
|
+ datediff(teea.finish_time,teea.start_time) as diffSum,
|
|
|
+ datediff(teea.finish_time,teea.start_time) - datediff(now(),teea.start_time) as reallyTime
|
|
|
from
|
|
|
t_e_exam_student tees
|
|
|
left join t_e_exam tee on
|
|
@@ -137,8 +139,8 @@
|
|
|
</where>
|
|
|
) t
|
|
|
<where>
|
|
|
- t.reallyTime <![CDATA[ >= ]]> -15
|
|
|
- and t.reallyTime <![CDATA[ <= ]]> 0
|
|
|
+ t.reallyTime <![CDATA[ <= ]]> diffSum + 15
|
|
|
+ and t.reallyTime <![CDATA[ >= ]]> 0
|
|
|
</where>
|
|
|
</select>
|
|
|
|