Joburgess 4 лет назад
Родитель
Сommit
c6fff7507b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -3273,7 +3273,7 @@
         WHERE csts.user_id_=#{teacherId}
         WHERE csts.user_id_=#{teacherId}
         AND cs.class_date_ = DATE_FORMAT(#{startClassTime},'%Y-%m-%d')
         AND cs.class_date_ = DATE_FORMAT(#{startClassTime},'%Y-%m-%d')
         AND cs.start_class_time_ < DATE_FORMAT(#{startClassTime},'%H:%i:%S')
         AND cs.start_class_time_ < DATE_FORMAT(#{startClassTime},'%H:%i:%S')
-        ORDER BY class_start_time_ DESC LIMIT 1;
+        ORDER BY start_class_time_ DESC LIMIT 1;
     </select>
     </select>
 
 
 </mapper>
 </mapper>