|
@@ -1664,7 +1664,9 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
practiceList = practiceList.stream().filter(s -> !courseIds.contains(s.getCourseId())).collect(Collectors.toList());
|
|
|
}
|
|
|
//创建课程评论
|
|
|
- repliedDao.insertBatch(practiceList);
|
|
|
+ if (CollectionUtils.isNotEmpty(practiceList)) {
|
|
|
+ repliedDao.insertBatch(practiceList);
|
|
|
+ }
|
|
|
|
|
|
//老师课酬状态改为已完成
|
|
|
courseScheduleTeacherSalaryService.update(null, Wrappers.<CourseScheduleTeacherSalary>lambdaUpdate()
|