浏览代码

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

luoshi 4 年之前
父节点
当前提交
424b265944
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      themis-business/src/main/resources/mapper/TEExamMapper.xml

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

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