xdd 3 месяцев назад
Родитель
Сommit
f07cac6beb
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      fs-service/src/main/resources/mapper/course/FsUserCourseVideoMapper.xml

+ 1 - 0
fs-service/src/main/resources/mapper/course/FsUserCourseVideoMapper.xml

@@ -367,6 +367,7 @@
         where course.is_del = 0 and video.video_id = #{videoId}
         where course.is_del = 0 and video.video_id = #{videoId}
          and fcp.period_id = #{periodId}
          and fcp.period_id = #{periodId}
         and fcpd.del_flag = 0 and video.is_del = 0 and fcp.del_flag = '0' and c.del_flag = '0'
         and fcpd.del_flag = 0 and video.is_del = 0 and fcp.del_flag = '0' and c.del_flag = '0'
+        limit 1
     </select>
     </select>
 
 
     <select id="selectFsUserCourseVideoByVideoIdAndUserId" resultMap="FsUserCourseVideoResult">
     <select id="selectFsUserCourseVideoByVideoIdAndUserId" resultMap="FsUserCourseVideoResult">