|
@@ -217,6 +217,7 @@ public class CourseChapterController {
|
|
|
courseRelates = courseRelates.stream()
|
|
courseRelates = courseRelates.stream()
|
|
|
.peek(oneCourseRelate -> oneCourseRelate.setChapterhourType("0")) // 修改属性
|
|
.peek(oneCourseRelate -> oneCourseRelate.setChapterhourType("0")) // 修改属性
|
|
|
.peek(oneCourseRelate -> oneCourseRelate.setMainId(chapter.getId())) // 修改属性
|
|
.peek(oneCourseRelate -> oneCourseRelate.setMainId(chapter.getId())) // 修改属性
|
|
|
|
|
+ .peek(oneCourseRelate -> oneCourseRelate.setInfoType("0")) // 修改属性
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
courseRelateService.addBatch(courseRelates);
|
|
courseRelateService.addBatch(courseRelates);
|
|
|
}
|
|
}
|
|
@@ -251,6 +252,7 @@ public class CourseChapterController {
|
|
|
courseRelates = courseRelates.stream()
|
|
courseRelates = courseRelates.stream()
|
|
|
.peek(oneCourseRelate -> oneCourseRelate.setChapterhourType("0")) // 修改属性
|
|
.peek(oneCourseRelate -> oneCourseRelate.setChapterhourType("0")) // 修改属性
|
|
|
.peek(oneCourseRelate -> oneCourseRelate.setMainId(chapter.getId())) // 修改属性
|
|
.peek(oneCourseRelate -> oneCourseRelate.setMainId(chapter.getId())) // 修改属性
|
|
|
|
|
+ .peek(oneCourseRelate -> oneCourseRelate.setInfoType("0")) // 修改属性
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
courseRelateService.addBatch(courseRelates);
|
|
courseRelateService.addBatch(courseRelates);
|
|
|
}
|
|
}
|