|
@@ -5185,7 +5185,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
if (!vipGroup.getStatus().equals(VipGroupStatusEnum.CANCEL)) {
|
|
|
throw new BizException("课程组不是取消状态");
|
|
|
}
|
|
|
-
|
|
|
+ List<CourseSchedule> schedules = courseScheduleDao.findGroupCourseSchedules(id.toString(), vipGroup.getGroupType());
|
|
|
+ if(!CollectionUtils.isEmpty(schedules)){
|
|
|
+ throw new BizException("当前课程组已排课");
|
|
|
+ }
|
|
|
vipGroupDao.del(id);
|
|
|
return true;
|
|
|
}
|