|
@@ -281,7 +281,7 @@
|
|
<select id="getWithExam" resultMap="StudentExamResult">
|
|
<select id="getWithExam" resultMap="StudentExamResult">
|
|
SELECT ser.*,er.subject_id_ regist_subject_id_,er.level_ regist_level_ FROM student_exam_result ser
|
|
SELECT ser.*,er.subject_id_ regist_subject_id_,er.level_ regist_level_ FROM student_exam_result ser
|
|
LEFT JOIN exam_registration er ON ser.exam_registration_id_ = er.id_
|
|
LEFT JOIN exam_registration er ON ser.exam_registration_id_ = er.id_
|
|
- WHERE examination_basic_id_=#{examId}
|
|
|
|
|
|
+ WHERE ser.examination_basic_id_=#{examId}
|
|
</select>
|
|
</select>
|
|
<select id="findByRoomIdAndUserId" resultMap="StudentExamResult">
|
|
<select id="findByRoomIdAndUserId" resultMap="StudentExamResult">
|
|
SELECT * FROM student_exam_result WHERE exam_room_id_ = #{roomId} AND student_id_ = #{userId} LIMIT 1
|
|
SELECT * FROM student_exam_result WHERE exam_room_id_ = #{roomId} AND student_id_ = #{userId} LIMIT 1
|