소스 검색

酷乐秀优化

zouxuan 4 달 전
부모
커밋
6824f2aa7c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      cooleshow-user/user-biz/src/main/resources/config/mybatis/TeacherMapper.xml

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/TeacherMapper.xml

@@ -523,9 +523,9 @@
         <if test="subjectId != null">
             left join student st ON st.user_id_ = cssp.user_id_
         </if>
-        where cg.status_ = 'ING' AND cg.teacher_id_ = #{teacherId}
+        where cg.teacher_id_ = #{teacherId}
         <if test="startTime != null and startTime != ''">
-            AND cs.class_date_ BETWEEN #{startTime} AND #{endTime}
+            AND cs.class_date_ BETWEEN #{startTime} AND #{endTime} AND cs.lock_ = 0
         </if>
         <if test="subjectId != null">
             and find_in_set(#{subjectId},st.subject_id_)