|
@@ -5247,9 +5247,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
allCourseIds.addAll(courseMergeInfo.getMergeCourseIds());
|
|
|
List<CourseSchedule> allCourses = courseScheduleDao.findByCourseScheduleIds(allCourseIds);
|
|
|
int courseTypeNum = allCourses.stream().map(CourseSchedule::getType).collect(Collectors.toSet()).size();
|
|
|
- if(courseTypeNum>1){
|
|
|
- throw new BizException("课程合并仅支持同课程类型");
|
|
|
- }
|
|
|
+// if(courseTypeNum>1){
|
|
|
+// throw new BizException("课程合并仅支持同课程类型");
|
|
|
+// }
|
|
|
for (CourseSchedule courseSchedule : allCourses) {
|
|
|
if(Objects.nonNull(courseSchedule.getNewCourseId())){
|
|
|
throw new BizException("存在已合并课程");
|