소스 검색

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

zouxuan 1 년 전
부모
커밋
9b20698eb6
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      mec-biz/src/main/resources/config/mybatis/StudentExtracurricularExercisesSituationMapper.xml

+ 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">