|
@@ -141,12 +141,14 @@
|
|
|
LEFT JOIN `subject` sb ON sb.id_ = g.subject_id_
|
|
|
LEFT JOIN course_schedule s ON s.id_ = r.course_schedule_id_
|
|
|
LEFT JOIN sys_user u ON u.id_ = r.student_id_
|
|
|
- WHERE r.course_group_type_ = #{param.courseType}
|
|
|
- AND r.student_replied_ != ""
|
|
|
+ WHERE r.student_replied_ != ""
|
|
|
AND s.teacher_id_ = #{param.teacherId}
|
|
|
<if test="param.studentName !=null and param.studentName !=''">
|
|
|
AND u.username_ LIKE CONCAT('%', #{param.studentName}, '%')
|
|
|
</if>
|
|
|
+ <if test="param.courseType !=null and param.courseType !=''">
|
|
|
+ AND r.course_group_type_ = #{param.courseType}
|
|
|
+ </if>
|
|
|
<if test="param.classDate !=null and param.classDate !=''">
|
|
|
AND DATE_FORMAT(s.class_date_,'%Y-%m') = #{param.classDate}
|
|
|
</if>
|