|
@@ -36,7 +36,6 @@
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="invigilatePageListVideo" resultType="com.qmth.themis.business.bean.admin.InvigilateListVideoBean">
|
|
<select id="invigilatePageListVideo" resultType="com.qmth.themis.business.bean.admin.InvigilateListVideoBean">
|
|
- select (@i := @i + 1) as seq,t.* from(
|
|
|
|
select s.exam_id as examId,
|
|
select s.exam_id as examId,
|
|
tee.name as examName,
|
|
tee.name as examName,
|
|
s.exam_activity_id as examActivityId,
|
|
s.exam_activity_id as examActivityId,
|
|
@@ -142,8 +141,6 @@
|
|
and toer.mobile_second_monitor_status = upper(#{mobileSecondMonitorStatus})
|
|
and toer.mobile_second_monitor_status = upper(#{mobileSecondMonitorStatus})
|
|
</if>
|
|
</if>
|
|
order by s.identity desc
|
|
order by s.identity desc
|
|
- ) t,
|
|
|
|
- (SELECT @i := 0) as i
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="invigilatePageListVideoRandom" resultType="com.qmth.themis.business.bean.admin.InvigilateListVideoBean">
|
|
<select id="invigilatePageListVideoRandom" resultType="com.qmth.themis.business.bean.admin.InvigilateListVideoBean">
|
|
@@ -165,9 +162,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="invigilatePagePatrolList" resultType="com.qmth.themis.business.bean.admin.InvigilateListPatrolBean">
|
|
<select id="invigilatePagePatrolList" resultType="com.qmth.themis.business.bean.admin.InvigilateListPatrolBean">
|
|
- select (@i := @i + 1) as seq,t.* from(
|
|
|
|
- select
|
|
|
|
- distinct s.exam_id as examId,
|
|
|
|
|
|
+ select distinct s.exam_id as examId,
|
|
tee.name as examName,
|
|
tee.name as examName,
|
|
s.exam_activity_id as examActivityId,
|
|
s.exam_activity_id as examActivityId,
|
|
teea.code as examActivityCode,
|
|
teea.code as examActivityCode,
|
|
@@ -202,7 +197,7 @@
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
|
|
</if>
|
|
</if>
|
|
- WHERE 1 = 1
|
|
|
|
|
|
+ <where> 1 = 1
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and s.exam_id = #{examId}
|
|
and s.exam_id = #{examId}
|
|
</if>
|
|
</if>
|
|
@@ -255,26 +250,23 @@
|
|
<if test="status == null or status == ''">
|
|
<if test="status == null or status == ''">
|
|
and toer.status in ('FIRST_PREPARE','ANSWERING','BREAK_OFF','RESUME_PREPARE')
|
|
and toer.status in ('FIRST_PREPARE','ANSWERING','BREAK_OFF','RESUME_PREPARE')
|
|
</if>
|
|
</if>
|
|
- ) t,
|
|
|
|
- (SELECT @i := 0) as i
|
|
|
|
- <where>1 = 1
|
|
|
|
- <if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
|
|
- and t.multipleFaceCount >= #{minMultipleFaceCount}
|
|
|
|
- </if>
|
|
|
|
- <if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
|
|
- and t.multipleFaceCount <= #{maxMultipleFaceCount}
|
|
|
|
- </if>
|
|
|
|
- <if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
|
|
- and t.exceptionCount >= #{minExceptionCount}
|
|
|
|
- </if>
|
|
|
|
- <if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
|
|
- and t.exceptionCount <= #{maxExceptionCount}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
|
|
+ and toer.warning_multiple_face_count >= #{minMultipleFaceCount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
|
|
+ and toer.warning_multiple_face_count <= #{maxMultipleFaceCount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
|
|
+ and toer.exception_count >= #{minExceptionCount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
|
|
+ and toer.exception_count <= #{maxExceptionCount}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="invigilatePageWarningList" resultType="com.qmth.themis.business.bean.admin.InvigilateListWarningBean">
|
|
<select id="invigilatePageWarningList" resultType="com.qmth.themis.business.bean.admin.InvigilateListWarningBean">
|
|
- select (@i := @i + 1) as seq,t.* from(select distinct
|
|
|
|
|
|
+ select distinct
|
|
tee.id as examId,
|
|
tee.id as examId,
|
|
tee.name as examName,
|
|
tee.name as examName,
|
|
teea.id as examActivityId,
|
|
teea.id as examActivityId,
|
|
@@ -302,7 +294,7 @@
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tees.exam_id
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tees.exam_id
|
|
</if>
|
|
</if>
|
|
- <where>1 = 1
|
|
|
|
|
|
+ <where> 1 = 1
|
|
and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and tiiwi.exam_id = #{examId}
|
|
and tiiwi.exam_id = #{examId}
|
|
@@ -334,23 +326,20 @@
|
|
<if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
|
|
<if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
|
|
and toer.warning_count >= #{minWarningCount}
|
|
and toer.warning_count >= #{minWarningCount}
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
|
|
- ) t,(SELECT @i := 0) as i
|
|
|
|
- <where>1 = 1
|
|
|
|
<if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
<if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
- and t.multipleFaceCount >= #{minMultipleFaceCount}
|
|
|
|
|
|
+ and toer.warning_multiple_face_count >= #{minMultipleFaceCount}
|
|
</if>
|
|
</if>
|
|
<if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
<if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
- and t.multipleFaceCount <= #{maxMultipleFaceCount}
|
|
|
|
|
|
+ and toer.warning_multiple_face_count <= #{maxMultipleFaceCount}
|
|
</if>
|
|
</if>
|
|
<if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
<if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
- and t.exceptionCount >= #{minExceptionCount}
|
|
|
|
|
|
+ and toer.exception_count >= #{minExceptionCount}
|
|
</if>
|
|
</if>
|
|
<if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
<if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
- and t.exceptionCount <= #{maxExceptionCount}
|
|
|
|
|
|
+ and toer.exception_count <= #{maxExceptionCount}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
- order by t.approveStatus,CAST(t.examActivityCode AS UNSIGNED),CAST(t.roomCode AS UNSIGNED)
|
|
|
|
|
|
+ order by tiiwi.approve_status,CAST(teea.code AS UNSIGNED),CAST(tees.room_code AS UNSIGNED)
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<update id="approveStatusListUpdate">
|
|
<update id="approveStatusListUpdate">
|
|
@@ -580,7 +569,6 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<sql id="invigilatePageListHistorySql">
|
|
<sql id="invigilatePageListHistorySql">
|
|
- select (@i := @i + 1) as seq,t.* from(
|
|
|
|
select s.exam_id as examId,
|
|
select s.exam_id as examId,
|
|
tee.name as examName,
|
|
tee.name as examName,
|
|
s.exam_activity_id as examActivityId,
|
|
s.exam_activity_id as examActivityId,
|
|
@@ -620,7 +608,7 @@
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
|
|
left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
|
|
</if>
|
|
</if>
|
|
- WHERE 1 = 1
|
|
|
|
|
|
+ <where> 1 = 1
|
|
<choose>
|
|
<choose>
|
|
<when test="status != null and status != '' and status == 'UN_FINISH'">
|
|
<when test="status != null and status != '' and status == 'UN_FINISH'">
|
|
and toer.id is null
|
|
and toer.id is null
|
|
@@ -692,20 +680,17 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</if>
|
|
</if>
|
|
- ) t,
|
|
|
|
- (SELECT @i := 0) as i
|
|
|
|
- <where>1 = 1
|
|
|
|
<if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
<if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
- and t.multipleFaceCount >= #{minMultipleFaceCount}
|
|
|
|
|
|
+ and toer.warning_multiple_face_count >= #{minMultipleFaceCount}
|
|
</if>
|
|
</if>
|
|
<if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
<if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
- and t.multipleFaceCount <= #{maxMultipleFaceCount}
|
|
|
|
|
|
+ and toer.warning_multiple_face_count <= #{maxMultipleFaceCount}
|
|
</if>
|
|
</if>
|
|
<if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
<if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
- and t.exceptionCount >= #{minExceptionCount}
|
|
|
|
|
|
+ and toer.exception_count >= #{minExceptionCount}
|
|
</if>
|
|
</if>
|
|
<if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
<if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
- and t.exceptionCount <= #{maxExceptionCount}
|
|
|
|
|
|
+ and toer.exception_count <= #{maxExceptionCount}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|