瀏覽代碼

酷乐秀优化

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_)