|
@@ -61,58 +61,58 @@
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getWaitingExamForJob" resultType="java.util.Map">
|
|
|
|
- select
|
|
|
|
- teea.id,
|
|
|
|
- teea.code,
|
|
|
|
- tee.opening_seconds as openingSeconds,
|
|
|
|
- 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 forceFinish,
|
|
|
|
- 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_fixed_range as inProcessLivenessFixedRange,
|
|
|
|
- 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,
|
|
|
|
- teea.id as activityId,
|
|
|
|
- teea.code as activityCode,
|
|
|
|
- teea.opening_seconds as activityOpeningSeconds,
|
|
|
|
- teea.prepare_seconds as activityPrepareSeconds,
|
|
|
|
- teea.max_duration_seconds as activityMaxDurationSeconds,
|
|
|
|
- teea.start_time as startTime,
|
|
|
|
- teea.finish_time as finishTime
|
|
|
|
- from
|
|
|
|
- t_e_exam_activity teea
|
|
|
|
- left join (
|
|
|
|
- select
|
|
|
|
- distinct 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, datediff(now(), teea.start_time) as reallyTime
|
|
|
|
- from
|
|
|
|
- t_e_exam_student tees
|
|
|
|
- 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
|
|
|
|
- tee.enable = 1
|
|
|
|
- and teea.enable = 1
|
|
|
|
- and tees.enable = 1
|
|
|
|
- and teea.start_time >= date_add(now(), interval IFNULL(teea.opening_seconds, tee.opening_seconds) second) ) t on
|
|
|
|
- t.examActivityId = teea.id
|
|
|
|
- left join t_e_exam tee on
|
|
|
|
- tee.id = t.id
|
|
|
|
- WHERE
|
|
|
|
- t.reallyTime = -1
|
|
|
|
- or t.reallyTime = 0
|
|
|
|
- </select>
|
|
|
|
|
|
+<!-- <select id="getWaitingExamForJob" resultType="java.util.Map">-->
|
|
|
|
+<!-- select-->
|
|
|
|
+<!-- teea.id,-->
|
|
|
|
+<!-- teea.code,-->
|
|
|
|
+<!-- tee.opening_seconds as openingSeconds,-->
|
|
|
|
+<!-- 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 forceFinish,-->
|
|
|
|
+<!-- 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_fixed_range as inProcessLivenessFixedRange,-->
|
|
|
|
+<!-- 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,-->
|
|
|
|
+<!-- teea.id as activityId,-->
|
|
|
|
+<!-- teea.code as activityCode,-->
|
|
|
|
+<!-- teea.opening_seconds as activityOpeningSeconds,-->
|
|
|
|
+<!-- teea.prepare_seconds as activityPrepareSeconds,-->
|
|
|
|
+<!-- teea.max_duration_seconds as activityMaxDurationSeconds,-->
|
|
|
|
+<!-- teea.start_time as startTime,-->
|
|
|
|
+<!-- teea.finish_time as finishTime-->
|
|
|
|
+<!-- from-->
|
|
|
|
+<!-- t_e_exam_activity teea-->
|
|
|
|
+<!-- left join (-->
|
|
|
|
+<!-- select-->
|
|
|
|
+<!-- distinct 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, datediff(now(), teea.start_time) as reallyTime-->
|
|
|
|
+<!-- from-->
|
|
|
|
+<!-- t_e_exam_student tees-->
|
|
|
|
+<!-- 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-->
|
|
|
|
+<!-- tee.enable = 1-->
|
|
|
|
+<!-- and teea.enable = 1-->
|
|
|
|
+<!-- and tees.enable = 1-->
|
|
|
|
+<!-- and teea.start_time >= date_add(now(), interval IFNULL(teea.opening_seconds, tee.opening_seconds) second) ) t on-->
|
|
|
|
+<!-- t.examActivityId = teea.id-->
|
|
|
|
+<!-- left join t_e_exam tee on-->
|
|
|
|
+<!-- tee.id = t.id-->
|
|
|
|
+<!-- WHERE-->
|
|
|
|
+<!-- t.reallyTime = -1-->
|
|
|
|
+<!-- or t.reallyTime = 0-->
|
|
|
|
+<!-- </select>-->
|
|
</mapper>
|
|
</mapper>
|