Bladeren bron

异常修改

wangliang 4 jaren geleden
bovenliggende
commit
698d8645ae

+ 6 - 6
themis-business/src/main/java/com/qmth/themis/business/dao/TEExamMapper.java

@@ -43,10 +43,10 @@ public interface TEExamMapper extends BaseMapper<TEExam> {
      */
     public List<TEExamDto> getWaitingExam(@Param("studentId") Long studentId, @Param("examId") Long examId, @Param("orgId") Long orgId);
 
-    /**
-     * 获取考试待考列表
-     *
-     * @return
-     */
-    public List<Map> getWaitingExamForJob();
+//    /**
+//     * 获取考试待考列表
+//     *
+//     * @return
+//     */
+//    public List<Map> getWaitingExamForJob();
 }

+ 6 - 6
themis-business/src/main/java/com/qmth/themis/business/service/TEExamService.java

@@ -49,12 +49,12 @@ public interface TEExamService extends IService<TEExam> {
      */
     public List<TEExamDto> getWaitingExam(Long studentId, Long examId, Long orgId);
 
-    /**
-     * 获取考试待考列表
-     *
-     * @return
-     */
-    public List<Map> getWaitingExamForJob();
+//    /**
+//     * 获取考试待考列表
+//     *
+//     * @return
+//     */
+//    public List<Map> getWaitingExamForJob();
 
     /**
      * 开始候考

+ 9 - 9
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

@@ -103,15 +103,15 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
         return list;
     }
 
-    /**
-     * 获取考试待考列表
-     *
-     * @return
-     */
-    @Override
-    public List<Map> getWaitingExamForJob() {
-        return teExamMapper.getWaitingExamForJob();
-    }
+//    /**
+//     * 获取考试待考列表
+//     *
+//     * @return
+//     */
+//    @Override
+//    public List<Map> getWaitingExamForJob() {
+//        return teExamMapper.getWaitingExamForJob();
+//    }
 
     @Transactional
     @Override

+ 54 - 54
themis-business/src/main/resources/mapper/TEExamMapper.xml

@@ -61,58 +61,58 @@
         </where>
     </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>