|
@@ -362,11 +362,11 @@
|
|
|
left join t_oe_exam_record toer on toer.id = tiiwi.exam_record_id
|
|
|
left join t_e_exam_student tees on tees.id = tiiwi.exam_student_id
|
|
|
<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 = tee.id
|
|
|
</if>
|
|
|
<where>1 = 1
|
|
|
<if test="examId != null and examId != ''">
|
|
|
- and tiiwi.exam_id = #{examId}
|
|
|
+ and tee.id = #{examId}
|
|
|
</if>
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and tbeiu.user_id = #{userId}
|
|
@@ -375,7 +375,7 @@
|
|
|
and tee.org_id = #{orgId}
|
|
|
</if>
|
|
|
<if test="examActivityId != null and examActivityId != ''">
|
|
|
- and tiiwi.exam_activity_id = #{examActivityId}
|
|
|
+ and teea.id = #{examActivityId}
|
|
|
</if>
|
|
|
<if test="roomCode != null and roomCode != ''">
|
|
|
and tees.room_code = #{roomCode}
|
|
@@ -395,23 +395,23 @@
|
|
|
<if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
|
|
|
and toer.warning_count >= #{minWarningCount}
|
|
|
</if>
|
|
|
- </where>
|
|
|
- ) t
|
|
|
- <where>1 = 1
|
|
|
<if test="minMultipleFaceCount != null and minMultipleFaceCount != '' or minMultipleFaceCount == 0">
|
|
|
- and t.multipleFaceCount >= #{minMultipleFaceCount}
|
|
|
+ and toer.warning_multiple_face_count >= #{minMultipleFaceCount}
|
|
|
</if>
|
|
|
<if test="maxMultipleFaceCount != null and maxMultipleFaceCount != '' or maxMultipleFaceCount == 0">
|
|
|
- and t.multipleFaceCount <= #{maxMultipleFaceCount}
|
|
|
+ and toer.warning_multiple_face_count <= #{maxMultipleFaceCount}
|
|
|
</if>
|
|
|
<if test="minExceptionCount != null and minExceptionCount != '' or minExceptionCount == 0">
|
|
|
- and t.exceptionCount >= #{minExceptionCount}
|
|
|
+ and toer.exception_count >= #{minExceptionCount}
|
|
|
</if>
|
|
|
<if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
|
|
|
- and t.exceptionCount <= #{maxExceptionCount}
|
|
|
+ and toer.exception_count <= #{maxExceptionCount}
|
|
|
</if>
|
|
|
</where>
|
|
|
- and t.warningId = tiiwi.id)
|
|
|
+ ) t
|
|
|
+ <where> 1 = 1
|
|
|
+ and t.warningId = tiiwi.id
|
|
|
+ </where>)
|
|
|
</update>
|
|
|
|
|
|
<select id="invigilatePageProgressList" resultType="com.qmth.themis.business.bean.admin.InvigilateListProgressBean">
|
|
@@ -1694,4 +1694,55 @@
|
|
|
</choose>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
+
|
|
|
+ <select id="findExamRecordByWarning" resultType="com.qmth.themis.business.entity.TOeExamRecord">
|
|
|
+ select toer.* from t_oe_exam_record toer
|
|
|
+ left join t_e_exam tee on tee.id = toer.exam_id
|
|
|
+ left join t_e_exam_activity teea on teea.id = toer.exam_activity_id
|
|
|
+ left join t_e_exam_student tees on tees.id = toer.exam_student_id
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tee.id
|
|
|
+ </if>
|
|
|
+ <where>1 = 1
|
|
|
+ <if test="examId != null and examId != ''">
|
|
|
+ and tee.id = #{examId}
|
|
|
+ </if>
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ and tbeiu.user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ <if test="orgId != null and orgId != ''">
|
|
|
+ and tee.org_id = #{orgId}
|
|
|
+ </if>
|
|
|
+ <if test="examActivityId != null and examActivityId != ''">
|
|
|
+ and teea.id = #{examActivityId}
|
|
|
+ </if>
|
|
|
+ <if test="roomCode != null and roomCode != ''">
|
|
|
+ and tees.room_code = #{roomCode}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name !=''">
|
|
|
+ and tees.name like CONCAT('%', #{name},'%')
|
|
|
+ </if>
|
|
|
+ <if test="identity != null and identity !=''">
|
|
|
+ and tees.identity like CONCAT('%', #{identity},'%')
|
|
|
+ </if>
|
|
|
+ <if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
|
+ and toer.warning_count <= #{maxWarningCount}
|
|
|
+ </if>
|
|
|
+ <if test="minWarningCount != null and minWarningCount != '' or minWarningCount == 0">
|
|
|
+ and toer.warning_count >= #{minWarningCount}
|
|
|
+ </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>
|
|
|
+ </select>
|
|
|
</mapper>
|