|
@@ -387,33 +387,11 @@
|
|
|
update t_ie_invigilate_warn_info tiiwi set tiiwi.approve_status = 1
|
|
|
where exists(
|
|
|
select t.warningId from(select
|
|
|
- tiiwi.id as warningId,
|
|
|
- tee.id as examId,
|
|
|
- tee.name as examName,
|
|
|
- teea.id as examActivityId,
|
|
|
- tees.id as examStudentId,
|
|
|
- teea.code as examActivityCode,
|
|
|
- tees.room_code as roomCode,
|
|
|
- tees.room_name as roomName,
|
|
|
- toer.id as examRecordId,
|
|
|
- tees.`identity`,
|
|
|
- tees.name,
|
|
|
- tees.course_code as courseCode,
|
|
|
- tees.course_name as courseName,
|
|
|
- toer.status as statusCode,
|
|
|
- IFNULL(toer.warning_count,0) as warningCount,
|
|
|
- IFNULL(toer.breach_status,1) as breachStatus,
|
|
|
- toer.client_last_sync_time as updateTime,
|
|
|
- tiiwi.approve_status as approveStatus
|
|
|
- ,(select count(1) from t_ie_invigilate_warn_info tiiwi where
|
|
|
- tiiwi.exam_record_id = toer.id and tiiwi.`type` =
|
|
|
- 'FACE_COUNT_ERROR' and tiiwi.`level` = 'D8') as multipleFaceCount
|
|
|
- ,(select count(1) from t_ie_invigilate_exception_info tiiei where
|
|
|
- tiiei.exam_record_id = toer.id) as exceptionCount
|
|
|
+ tiiwi.id as warningId
|
|
|
from t_ie_invigilate_warn_info tiiwi
|
|
|
left join t_e_exam tee on tee.id = tiiwi.exam_id
|
|
|
left join t_e_exam_activity teea on teea.id = tiiwi.exam_activity_id
|
|
|
- left join t_oe_exam_record toer on toer.id = t.id
|
|
|
+ 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
|
|
|
<where>1 = 1
|
|
|
<if test="examId != null and examId != ''">
|