Commit 3219a41f authored by liuyuanjun's avatar liuyuanjun

修改bug29460

parent f18a2fd1
...@@ -29,8 +29,8 @@ public interface BChapterRepository extends BaseMapper<BChapter> { ...@@ -29,8 +29,8 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
@Update("update b_chapter bc " + @Update("update b_chapter bc " +
"left join b_file bf on bc.business_id = bf.chapter_id " + "left join b_file bf on bc.business_id = bf.chapter_id " +
"set bc.del_flag = '1' where bf.video_url = ( " + "set bc.del_flag = '1' where bf.video_url = ( " +
"SELECT video_url from b_file where chapter_id = #{businessId})") "SELECT video_url from b_file where chapter_id = #{businessId} and lesson_id = #{lessonId})")
int removeByPrimaryKey(@Param("businessId") String businessId); int removeByPrimaryKey(@Param("businessId") String businessId, @Param("lessonId") String lessonId);
@Update("update b_chapter set del_flag = '1' where business_id = #{businessId}") @Update("update b_chapter set del_flag = '1' where business_id = #{businessId}")
int removeChapter(@Param("businessId") String businessId); int removeChapter(@Param("businessId") String businessId);
......
...@@ -731,7 +731,7 @@ public class BChapterServiceImpl implements BChapterService { ...@@ -731,7 +731,7 @@ public class BChapterServiceImpl implements BChapterService {
} }
//获取第一节课的id 与当前id对比 //获取第一节课的id 与当前id对比
String firstId = bChapterRepository.getFirstChapter(lessonId); String firstId = bChapterRepository.getFirstChapter(lessonId);
int line = bChapterRepository.removeByPrimaryKey(id); int line = bChapterRepository.removeByPrimaryKey(id, lessonId);
bChapterRepository.updateClassHourInLesson(lessonId); bChapterRepository.updateClassHourInLesson(lessonId);
if (StringUtils.isNotEmpty(id) && id.equals(firstId)) { if (StringUtils.isNotEmpty(id) && id.equals(firstId)) {
//当前节为第一节 获取下一节的课程时长 //当前节为第一节 获取下一节的课程时长
......
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