|
@@ -178,7 +178,7 @@
|
|
|
<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(date_add(teea.start_time, interval IFNULL(teea.max_duration_seconds,
|
|
|
+ ,date_format(date_sub(date_add(FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s'), interval IFNULL(teea.max_duration_seconds,
|
|
|
tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds
|
|
|
minute),'%H:%i:%s') as remainTime
|
|
|
<include refid="invigilatePageMiddle"/>
|
|
@@ -200,7 +200,7 @@
|
|
|
<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(date_add(teea.start_time, interval IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds minute),'%H:%i:%s') as remainTime
|
|
|
+ ,date_format(date_sub(date_add(FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s'), interval IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds minute),'%H:%i:%s') as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
<if test="paperDownload != null and paperDownload != ''">
|
|
@@ -215,7 +215,7 @@
|
|
|
<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(date_add(teea.start_time, interval IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds minute),'%H:%i:%s') as remainTime
|
|
|
+ ,date_format(date_sub(date_add(FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s'), interval IFNULL(teea.max_duration_seconds, tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds minute),'%H:%i:%s') as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<if test="examId != null and examId != ''">
|
|
|
and t.exam_id = #{examId}
|
|
@@ -228,7 +228,7 @@
|
|
|
,(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(date_add(teea.start_time, interval IFNULL(teea.max_duration_seconds,
|
|
|
+ ,date_format(date_sub(date_add(FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s'), interval IFNULL(teea.max_duration_seconds,
|
|
|
tee.max_duration_seconds) second), interval teea.max_duration_seconds / 60 - t.duration_seconds
|
|
|
minute),'%H:%i:%s') as remainTime
|
|
|
<include refid="invigilatePageMiddle" />
|
|
@@ -503,7 +503,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getDoneCountByDay" resultType="java.util.Map">
|
|
|
- select DATE_FORMAT(f.first_prepare_time, '%Y-%m-%d') AS day,
|
|
|
+ select
|
|
|
+ FROM_UNIXTIME(f.first_prepare_time / 1000,'%Y-%m-%d') AS day
|
|
|
count(DISTINCT(f.exam_student_id)) count from t_oe_exam_record f
|
|
|
left join t_e_exam_student t on f.exam_student_id=t.id
|
|
|
where f.exam_id = #{examId}
|
|
@@ -703,11 +704,11 @@
|
|
|
</select>
|
|
|
<select id="getWarnTrend" resultType="com.qmth.themis.business.bean.backend.ExaminationMonitorHourWarnCountBean">
|
|
|
SELECT
|
|
|
- DATE_FORMAT(w.create_time,'%H') hour,
|
|
|
+ FROM_UNIXTIME(w.create_time / 1000,'%H') hour,
|
|
|
count(1) count
|
|
|
FROM t_ie_invigilate_warn_info w
|
|
|
WHERE w.type!='NONE' and w.create_time>=#{startTime}
|
|
|
GROUP BY
|
|
|
- DATE_FORMAT(w.create_time,'%H')
|
|
|
+ FROM_UNIXTIME(w.create_time / 1000,'%H')
|
|
|
</select>
|
|
|
</mapper>
|