|
@@ -2,4 +2,59 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.qmth.themis.business.dao.TOeExamRecordMapper">
|
|
|
|
|
|
+ <select id="getUnFinishExam" resultType="java.util.Map">
|
|
|
+ select
|
|
|
+ tee.id,
|
|
|
+ teea.id as examActivityId,
|
|
|
+ tee.name,
|
|
|
+ tee.mode,
|
|
|
+ tee.pre_notice as preNotice,
|
|
|
+ tee.pre_notice_stay_seconds as preNoticeStaySeconds,
|
|
|
+ tee.post_notice as postNotice,
|
|
|
+ tee.code as examCode,
|
|
|
+ teea.code as examActivityCode,
|
|
|
+ tee.start_time as examStartTime,
|
|
|
+ tee.end_time as examEndTime,
|
|
|
+ teea.start_time as examActivityStartTime,
|
|
|
+ teea.finish_time as examActivityFinishTime,
|
|
|
+ tees.course_code as courseCode,
|
|
|
+ teec.course_name as courseName,
|
|
|
+ tee.prepare_seconds as prepareSeconds,
|
|
|
+ tee.min_duration_seconds as minDurationSeconds,
|
|
|
+ tee.max_duration_seconds as maxDurationSeconds,
|
|
|
+ tee.exam_count as examCount,
|
|
|
+ tee.force_finish as fouceFinish,
|
|
|
+ tee.entry_authentication_policy as entryAuthenticationPolicy,
|
|
|
+ tee.in_process_face_verify as inProcessFaceVerify,
|
|
|
+ tee.in_process_face_stranger_ignore as inProcessFaceStrangerIgnore,
|
|
|
+ tee.in_process_liveness_verify as inProcessLivenessVerify,
|
|
|
+ tee.in_process_liveness_interval_seconds as inProcessLivenessIntervalSeconds,
|
|
|
+ tee.in_process_liveness_judge_policy as inProcessLivenessJudgePolicy,
|
|
|
+ tee.in_process_liveness_retry_count as inProcessLivenessRetryCount,
|
|
|
+ tee.client_video_push as clientVideoPush,
|
|
|
+ tee.wxapp_video_push as wxappVideoPush,
|
|
|
+ tee.camera_photo_upload as cameraPhotoUpload,
|
|
|
+ tee.wxapp_photo_upload as wxappPhotoUpload,
|
|
|
+ tee.wxapp_video_record as wxappVideoRecord
|
|
|
+ from
|
|
|
+ t_oe_exam_record toer
|
|
|
+ left join t_e_exam_student tees on
|
|
|
+ tees.id = toer.exam_student_id
|
|
|
+ left join t_e_exam_course teec on
|
|
|
+ teec.course_code = tees.course_code
|
|
|
+ left join t_e_exam tee on
|
|
|
+ tee.id = tees.exam_id
|
|
|
+ left join t_e_exam_activity teea on
|
|
|
+ teea.id = tees.exam_activity_id
|
|
|
+ <where>
|
|
|
+ <if test="studentId != null and studentId != ''">
|
|
|
+ and tees.student_id = #{studentId}
|
|
|
+ </if>
|
|
|
+ and tee.enable = 1
|
|
|
+ and teea.enable = 1
|
|
|
+ and tees.enable = 1
|
|
|
+ and teea.start_time <![CDATA[ <= ]]> now()
|
|
|
+ and teea.finish_time <![CDATA[ >= ]]> now()
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|