@@ -2335,7 +2335,7 @@
COUNT(DISTINCT cs.id_)
FROM
course_schedule cs
- LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
+ LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.remark_ IS NULL
<include refid="endFindCourseSchedulesCondition"/>
</select>
<select id="findCourseIdsByStudent" resultType="int">