浏览代码

考试明细数据重复BUG修改

wangliang 3 年之前
父节点
当前提交
0d478df49b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

+ 2 - 2
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -1210,9 +1210,9 @@
         join t_e_exam_activity teea on
         teea.exam_id = tee.id and toer.exam_activity_id = teea.id
         join t_e_exam_student tees on
-        tees.id = toer.exam_student_id
-        and toer.exam_id = tees.exam_id
+        toer.exam_id = tees.exam_id
         and toer.exam_activity_id = tees.exam_activity_id
+        and tees.id = toer.exam_student_id
         <where>
             <if test="examId != null and examId != ''">
                 and toer.exam_id = #{examId}