cy 3 年之前
父节点
当前提交
6b237d67a6

+ 3 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/CourseScheduleServiceImpl.java

@@ -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()