|
@@ -197,7 +197,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getStudentExamRoom" resultMap="ExamRoomStudentRelation">
|
|
<select id="getStudentExamRoom" resultMap="ExamRoomStudentRelation">
|
|
|
- SELECT * FROM exam_room_student_relation WHERE exam_registration_id_ = #{registId}
|
|
|
|
|
|
|
+ SELECT * FROM exam_room_student_relation WHERE exam_registration_id_ = #{registId} LIMIT 1 FOR UPDATE
|
|
|
</select>
|
|
</select>
|
|
|
<select id="findByStudentIdAndRoomId" resultMap="ExamRoomStudentRelation">
|
|
<select id="findByStudentIdAndRoomId" resultMap="ExamRoomStudentRelation">
|
|
|
SELECT ersr.* FROM exam_room_student_relation ersr
|
|
SELECT ersr.* FROM exam_room_student_relation ersr
|