|
@@ -297,7 +297,9 @@
|
|
|
student_course_homework sch
|
|
|
LEFT JOIN sys_user su ON sch.user_id_=su.id_
|
|
|
<where>
|
|
|
- sch.course_schedule_id_=#{courseScheduleId}
|
|
|
+ <if test="courseScheduleId != null">
|
|
|
+ AND sch.course_schedule_id_=#{courseScheduleId}
|
|
|
+ </if>
|
|
|
<if test="homeworkId!=null">
|
|
|
AND sch.course_homework_id_=#{homeworkId}
|
|
|
</if>
|