|
@@ -172,12 +172,8 @@
|
|
|
<select id="invigilatePageList"
|
|
|
resultType="com.qmth.themis.business.bean.backend.InvigilateListBean">
|
|
|
<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, tee.max_duration_seconds)
|
|
|
- second), interval teea.max_duration_seconds / 60 - t.duration_seconds
|
|
|
- minute),'%H:%i:%s') as remainTime
|
|
|
+ ,(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
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
<if test="paperDownload != null and paperDownload != ''">
|
|
@@ -190,6 +186,8 @@
|
|
|
resultType="com.qmth.themis.business.bean.backend.InvigilateListVideoBean">
|
|
|
<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
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
<if test="paperDownload != null and paperDownload != ''">
|
|
@@ -200,12 +198,9 @@
|
|
|
|
|
|
<select id="invigilatePagePatrolList"
|
|
|
resultType="com.qmth.themis.business.bean.backend.InvigilateListPatrolBean">
|
|
|
- select * from(
|
|
|
- <include refid="invigilatePageHead" />
|
|
|
- ,(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` =
|
|
|
+ select * from(<include refid="invigilatePageHead" />
|
|
|
+ ,(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
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
<include refid="invigilatePageFoot" />
|
|
@@ -232,6 +227,7 @@
|
|
|
<select id="invigilatePageWarningList"
|
|
|
resultType="com.qmth.themis.business.bean.backend.InvigilateListWarningBean">
|
|
|
select * from(select
|
|
|
+ tiiwi.id as warningId,
|
|
|
tee.id as examId,
|
|
|
tee.name as examName,
|
|
|
teea.id as examActivityId,
|
|
@@ -380,13 +376,13 @@
|
|
|
order by tees.room_code
|
|
|
</select>
|
|
|
|
|
|
- <select id="invigilatePageListHistory"
|
|
|
- resultType="com.qmth.themis.business.bean.backend.InvigilateListHistoryBean">
|
|
|
+ <select id="invigilatePageListHistory" resultType="com.qmth.themis.business.bean.backend.InvigilateListHistoryBean">
|
|
|
<include refid="invigilatePageHead" />
|
|
|
+ ,tes.mobile_number as mobileNumber
|
|
|
<include refid="invigilatePageMiddle" />
|
|
|
+ left join t_e_student tes on s.student_id = tes.id
|
|
|
<include refid="invigilatePageFoot" />
|
|
|
- <if
|
|
|
- test="breachStatus != null and breachStatus != '' or breachStatus == 0">
|
|
|
+ <if test="breachStatus != null and breachStatus != '' or breachStatus == 0">
|
|
|
and t.breach_status = #{breachStatus}
|
|
|
</if>
|
|
|
<if test="finishType != null and finishType != ''">
|
|
@@ -415,6 +411,7 @@
|
|
|
</if>
|
|
|
group by f.exam_activity_id
|
|
|
</select>
|
|
|
+
|
|
|
<select id="getDoneCountByDay" resultType="java.util.Map">
|
|
|
select DATE_FORMAT(f.first_prepare_time, '%Y-%m-%d') AS day,
|
|
|
count(DISTINCT(f.exam_student_id)) count from t_oe_exam_record f
|
|
@@ -437,6 +434,7 @@
|
|
|
select count(1) from t_oe_exam_record f
|
|
|
where f.exam_id = #{examId}
|
|
|
</select>
|
|
|
+
|
|
|
<select id="getListByExamIdAndStartId" resultType="com.qmth.themis.business.entity.TOeExamRecord">
|
|
|
select f.* from t_oe_exam_record f
|
|
|
where f.exam_id = #{examId} and f.id>#{startId}
|