|
@@ -268,6 +268,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
Date date = new Date();
|
|
|
if (courseScheduleList != null) {
|
|
|
for (CourseSchedule cs : courseScheduleList) {
|
|
|
+ if(cs.getStartClassTime().compareTo(date)<0){
|
|
|
+ throw new BizException("删除失败,进行中或已结束的课程不能删除");
|
|
|
+ }
|
|
|
if(settlementCourseIds.contains(cs.getId())){
|
|
|
throw new BizException("删除失败,已结算的课程不能删除");
|
|
|
}
|