|
@@ -835,6 +835,9 @@
|
|
LEFT JOIN student_extracurricular_exercises_situation_ se ON se.teacher_id_ = csts.user_id_
|
|
LEFT JOIN student_extracurricular_exercises_situation_ se ON se.teacher_id_ = csts.user_id_
|
|
left join lesson_examination le on le.course_schedule_id_ = csts.course_schedule_id_
|
|
left join lesson_examination le on le.course_schedule_id_ = csts.course_schedule_id_
|
|
WHERE csts.user_id_ = #{teacherId}
|
|
WHERE csts.user_id_ = #{teacherId}
|
|
|
|
+ <if test="teacherId != null">
|
|
|
|
+ AND csts.user_id_ = #{teacherId}
|
|
|
|
+ </if>
|
|
<if test="firstDayOfMonth != null and lastDayOfMonth != null">
|
|
<if test="firstDayOfMonth != null and lastDayOfMonth != null">
|
|
AND cs.class_date_ BETWEEN #{firstDayOfMonth} AND #{lastDayOfMonth}
|
|
AND cs.class_date_ BETWEEN #{firstDayOfMonth} AND #{lastDayOfMonth}
|
|
</if>
|
|
</if>
|