Prechádzať zdrojové kódy

修复监考员与考生表关联查询的缺失字段问题

luoshi 4 rokov pred
rodič
commit
424b265944

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

@@ -22,7 +22,7 @@
                 t_b_exam_invigilate_user tbeiu
                 left join t_e_exam_student tees on
                 tees.exam_id = tbeiu.exam_id
-                and tees.room_code = tbeiu.room_code and tees.exam_id = tbeiu.exam_id
+                and tees.room_code = tbeiu.room_code
                 where
                 tbeiu.user_id = #{userId}
                 and t.id = tbeiu.exam_id)
@@ -95,7 +95,7 @@
                 t_b_exam_invigilate_user tbeiu
                 left join t_e_exam_student tees on
                 tees.exam_id = tbeiu.exam_id
-                and tees.room_code = tbeiu.room_code and tees.exam_id = tbeiu.exam_id
+                and tees.room_code = tbeiu.room_code
                 where
                 tbeiu.user_id = #{userId}
                 and t.id = tbeiu.exam_id)
@@ -195,7 +195,7 @@
         t_b_exam_invigilate_user tbeiu
         left join t_e_exam_student tees on
         tees.exam_id = tbeiu.exam_id
-        and tees.room_code = tbeiu.room_code and tees.exam_id = tbeiu.exam_id
+        and tees.room_code = tbeiu.room_code
         <where>1 = 1
             <if test="userId != null and userId != ''">
                 and tbeiu.user_id = #{userId}