Commit 8adc93db authored by luzhuang's avatar luzhuang

上传视频后添加视频时间

parent 07cef8ea
......@@ -21,9 +21,11 @@ public interface BFileRepository extends BaseMapper<BFile> {
@Update("UPDATE b_lesson set course_time = #{time} where business_id =#{id}")
int updateVideoTimeInLesson(@Param("time") String time,@Param("id") String id);
@Select("SELECT business_id FROM b_chapter 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")
@Select("SELECT business_id FROM b_chapter " +
"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")
String getFirstChapter(@Param("lessonId") String lessonId);
/**
......
......@@ -56,7 +56,7 @@ spring:
template-loader-path: classpath:/templates/
servlet:
multipart:
max-file-size: 10MB
max-file-size: 100MB
max-request-size: 100MB
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