فهرست منبع

学校端支持查看学员练习情况

zouxuan 1 سال پیش
والد
کامیت
cf6f3c48bd
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      mec-biz/src/main/resources/config/mybatis/StudentExtracurricularExercisesSituationMapper.xml

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/StudentExtracurricularExercisesSituationMapper.xml

@@ -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>