|
@@ -211,7 +211,12 @@
|
|
|
<include refid="invigilatePageHead"/>
|
|
|
,(select count(1) from t_ie_invigilate_warn_info tiiwi where tiiwi.exam_record_id = t.id and
|
|
|
tiiwi.approve_status = 0) as warningNew
|
|
|
- ,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
|
|
|
+ ,case
|
|
|
+ when tee.mode = 'ANYTIME' then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ when tee.mode = 'TOGETHER' and tee.force_finish = 1 then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.finish_time, tee.end_time) - unix_timestamp(current_timestamp()) * 1000),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ END as remainTime
|
|
|
<include refid="invigilatePageMiddle"/>
|
|
|
<include refid="invigilatePageFoot"/>
|
|
|
<if test="paperDownload != null and paperDownload != '' or paperDownload == 0">
|
|
@@ -234,7 +239,12 @@
|
|
|
<include refid="invigilatePageHead" />
|
|
|
,t.monitor_live_url as monitorLiveUrl
|
|
|
,(select count(1) from t_ie_invigilate_warn_info tiiwi where tiiwi.exam_record_id = t.id and tiiwi.approve_status = 0) as warningNew
|
|
|
- ,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
|
|
|
+ ,case
|
|
|
+ when tee.mode = 'ANYTIME' then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ when tee.mode = 'TOGETHER' and tee.force_finish = 1 then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.finish_time, tee.end_time) - unix_timestamp(current_timestamp()) * 1000),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ END as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
<if test="paperDownload != null and paperDownload != '' or paperDownload == 0">
|
|
@@ -252,7 +262,12 @@
|
|
|
<include refid="invigilatePageHead" />
|
|
|
,t.monitor_live_url as monitorLiveUrl
|
|
|
,(select count(1) from t_ie_invigilate_warn_info tiiwi where tiiwi.exam_record_id = t.id and tiiwi.approve_status = 0) as warningNew
|
|
|
- ,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
|
|
|
+ ,case
|
|
|
+ when tee.mode = 'ANYTIME' then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ when tee.mode = 'TOGETHER' and tee.force_finish = 1 then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.finish_time, tee.end_time) - unix_timestamp(current_timestamp()) * 1000),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ END as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<where> 1 = 1
|
|
|
<if test="examId != null and examId != ''">
|
|
@@ -268,7 +283,12 @@
|
|
|
,(select count(1) from t_ie_invigilate_exception_info tiiei where tiiei.exam_record_id = t.id) as exceptionCount
|
|
|
,(select count(1) from t_ie_invigilate_warn_info tiiwi where tiiwi.exam_record_id = t.id and tiiwi.`type` =
|
|
|
'FACE_COUNT_ERROR' and tiiwi.`level` = 'D8') as multipleFaceCount
|
|
|
- ,date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s') as remainTime
|
|
|
+ ,case
|
|
|
+ when tee.mode = 'ANYTIME' then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) - t.duration_seconds),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ when tee.mode = 'TOGETHER' and tee.force_finish = 1 then
|
|
|
+ date_format(date_sub(from_unixtime(IFNULL(teea.finish_time, tee.end_time) - unix_timestamp(current_timestamp()) * 1000),INTERVAL 8 HOUR), '%H:%i:%s')
|
|
|
+ END as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
<if test="status == null or status == ''">
|