|
@@ -84,10 +84,12 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
|
|
|
public Boolean insertByAddBo(CourseChapterSectionAddBo bo) {
|
|
|
Boolean result = false;
|
|
|
for(int i=0;i<bo.getSectionIdList().size();i++){
|
|
|
- Long sectionId = bo.getSectionIdList().get(i);
|
|
|
+ Long sectionId = bo.getSectionIdList().get(i).getSectionId();
|
|
|
+ Long sort = bo.getSectionIdList().get(i).getSort();
|
|
|
CourseChapterSection add = new CourseChapterSection();
|
|
|
add.setChapterId(bo.getChapterId());
|
|
|
add.setSectionId(sectionId);
|
|
|
+ add.setSort(sort);
|
|
|
result = this.save(add);
|
|
|
}
|
|
|
return result;
|