Ver código fonte

考试明细数据重复BUG修改

wangliang 3 anos atrás
pai
commit
e838cc20cb

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

@@ -1208,9 +1208,11 @@
         join t_e_exam tee on
         tee.id = toer.exam_id
         join t_e_exam_activity teea on
-        teea.exam_id = tee.id
+        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
+        and toer.exam_activity_id = tees.exam_activity_id
         <where>
             <if test="examId != null and examId != ''">
                 and toer.exam_id = #{examId}