|
@@ -1930,6 +1930,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if (Objects.isNull(vipGroup)) {
|
|
|
throw new BizException("指定课程不存在");
|
|
|
}
|
|
|
+ if(!VipGroupStatusEnum.PROGRESS.equals(vipGroup.getStatus())){
|
|
|
+ throw new BizException("非进行中课程组不允许进行此操作");
|
|
|
+ }
|
|
|
singleClassMinutes = vipGroup.getSingleClassMinutes();
|
|
|
courseNum = courseScheduleDao.countVipGroupCourses(vipGroup.getId().intValue(),groupType.getCode());
|
|
|
}
|
|
@@ -2699,6 +2702,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if (vipGroup == null) {
|
|
|
throw new BizException("课程[{}]记录存在异常,请联系管理员", courseScheduleId);
|
|
|
}
|
|
|
+ if(!VipGroupStatusEnum.PROGRESS.equals(vipGroup.getStatus())){
|
|
|
+ throw new BizException("非进行中课程组不允许进行此操作");
|
|
|
+ }
|
|
|
|
|
|
BigDecimal teacherSalary=BigDecimal.ZERO;
|
|
|
|