Commit 8adc93db authored by luzhuang's avatar luzhuang

上传视频后添加视频时间

parent 07cef8ea
...@@ -21,8 +21,10 @@ public interface BFileRepository extends BaseMapper<BFile> { ...@@ -21,8 +21,10 @@ public interface BFileRepository extends BaseMapper<BFile> {
@Update("UPDATE b_lesson set course_time = #{time} where business_id =#{id}") @Update("UPDATE b_lesson set course_time = #{time} where business_id =#{id}")
int updateVideoTimeInLesson(@Param("time") String time,@Param("id") String id); int updateVideoTimeInLesson(@Param("time") String time,@Param("id") String id);
@Select("SELECT business_id FROM b_chapter WHERE" + @Select("SELECT business_id FROM b_chapter " +
"pid = ( SELECT business_id FROM b_chapter WHERE lesson_id = #{lessonId} AND chapter_level = '1' AND del_flag != 1 AND flag = 1 ORDER BY sort LIMIT 1 ) " + "WHERE pid = " +
"( SELECT business_id FROM b_chapter " +
"WHERE lesson_id = #{lessonId} AND chapter_level = 1 AND del_flag != 1 AND flag = 1 ORDER BY sort LIMIT 1 ) " +
"ORDER BY sort LIMIT 1") "ORDER BY sort LIMIT 1")
String getFirstChapter(@Param("lessonId") String lessonId); String getFirstChapter(@Param("lessonId") String lessonId);
......
...@@ -56,7 +56,7 @@ spring: ...@@ -56,7 +56,7 @@ spring:
template-loader-path: classpath:/templates/ template-loader-path: classpath:/templates/
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 100MB
max-request-size: 100MB max-request-size: 100MB
global: global:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment