Commit a525e0ac authored by luzhuang's avatar luzhuang

修改接口

parent 8c48bc94
......@@ -404,7 +404,7 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
@Select("select lesson_id from b_chapter where business_id = #{businessId}")
String getLessonIdBychaperId(@Param("businessId") String businessId);
@Update("delete from b_r_student_chapter where chapter_id = #{chapterId} and student_id = #{uid} ")
int deleteStudentChapter(@Param("chapterId") String chapterId,@Param("uid") String uid);
@Delete("delete from b_r_student_chapter where chapter_id = #{chapterId} and student_id = #{uid} ")
int deleteBStudentChapter(@Param("chapterId") String chapterId,@Param("uid") String uid);
}
......@@ -8,7 +8,7 @@ import lombok.Data;
@Data
public class ChapterDTO {
@ApiModelProperty(value = "课程id 修改章节时传入")
@ApiModelProperty(value = "章节id 修改章节时传入")
private String businessId;
@ApiModelProperty(value = "课程ID")
......
......@@ -364,7 +364,7 @@ public class BChapterServiceImpl implements BChapterService {
//更新到b_lesson 表
bChapterRepository.updateCourseTimeForLesson(time,lessonId);
//删除student_chapter表中数据
bChapterRepository.deleteStudentChapter(id,userId);
bChapterRepository.deleteBStudentChapter(id,userId);
}
return new PersistModel(line);
......
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