zouxuan 5 年之前
父节点
当前提交
751fe1fa59
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      edu-user/edu-user-biz/src/main/resources/config/mybatis/ExamReviewMapper.xml

+ 2 - 1
edu-user/edu-user-biz/src/main/resources/config/mybatis/ExamReviewMapper.xml

@@ -199,6 +199,7 @@
 	</resultMap>
 	<sql id="queryExamReviewRecordListSql">
 		<where>
+			ersr.sign_in_time_ IS NOT NULL
 			<if test="reviewFlag != null and reviewFlag == 1">
 				AND er.id_ IS NOT NULL
 			</if>
@@ -218,7 +219,7 @@
 		LEFT JOIN student_exam_result ser ON ser.exam_registration_id_ = ersr.exam_registration_id_
 		LEFT JOIN exam_review er ON ser.exam_registration_id_ = er.exam_registration_id_ AND er.teacher_id_ = #{teacherId}
 		<include refid="queryExamReviewRecordListSql"/>
-		ORDER BY ser.is_finished_exam_ DESC
+		ORDER BY ser.is_finished_exam_ ASC
 		<include refid="global.limit"/>
 	</select>