|
@@ -228,7 +228,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
and up.chapter_id=#{chapterId}
|
|
and up.chapter_id=#{chapterId}
|
|
and up.section_id=#{typeId}
|
|
and up.section_id=#{typeId}
|
|
and up.course_id=#{courseId}
|
|
and up.course_id=#{courseId}
|
|
- and up.exam_id=#{examId}
|
|
|
|
|
|
+ <if test="examId != null ">
|
|
|
|
+ and up.exam_id=#{examId}
|
|
|
|
+ and up.`type` = 2
|
|
|
|
+ </if>
|
|
|
|
+
|
|
AND ups.period_status =1
|
|
AND ups.period_status =1
|
|
and (ups.`status` = 0 or ups.`status` = 3)
|
|
and (ups.`status` = 0 or ups.`status` = 3)
|
|
</select>
|
|
</select>
|
|
@@ -246,7 +250,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
and up.chapter_id=#{chapterId}
|
|
and up.chapter_id=#{chapterId}
|
|
and up.course_id=#{courseId}
|
|
and up.course_id=#{courseId}
|
|
and up.section_id=#{typeId}
|
|
and up.section_id=#{typeId}
|
|
- and up.exam_id=#{examId}
|
|
|
|
|
|
+ <if test="examId != null ">
|
|
|
|
+ and up.exam_id=#{examId}
|
|
|
|
+ and up.`type` = 2
|
|
|
|
+ </if>
|
|
AND ups.period_status =1
|
|
AND ups.period_status =1
|
|
and ups.record_end_time is not null
|
|
and ups.record_end_time is not null
|
|
</select>
|
|
</select>
|