Ver código fonte

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

zouxuan 1 ano atrás
pai
commit
9b20698eb6

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

@@ -834,15 +834,14 @@
                  LEFT JOIN course_schedule cs ON cs.id_ = csts.course_schedule_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_
-        WHERE csts.user_id_ = #{teacherId}
+        WHERE FIND_IN_SET(cs.id_, se.course_ids_) and le.id_ is null
+        AND se.serve_type_ = 'HOMEWORK'
         <if test="teacherId != null">
             AND csts.user_id_ = #{teacherId}
         </if>
         <if test="firstDayOfMonth != null and lastDayOfMonth != null">
             AND cs.class_date_ BETWEEN #{firstDayOfMonth} AND #{lastDayOfMonth}
         </if>
-          AND FIND_IN_SET(cs.id_, se.course_ids_) and le.id_ is null
-          AND se.serve_type_ = 'HOMEWORK'
     </select>
 
     <select id="countWaitCreateHomeworkNum" resultType="java.lang.Integer">