zouxuan 4 hónapja
szülő
commit
6824f2aa7c

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