|
@@ -1435,6 +1435,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
if(Objects.isNull(studentRecoverInfo.getVipGroupId())||Objects.isNull(studentRecoverInfo.getUserId())){
|
|
|
throw new BizException("请指定小课与学生");
|
|
|
}
|
|
|
+ Date now=new Date();
|
|
|
+ if(studentRecoverInfo.getCourseCreateStartTime().before(now)){
|
|
|
+ throw new BizException("排课起始时间不得小于当前时间");
|
|
|
+ }
|
|
|
VipGroup vipGroup=vipGroupDao.get(studentRecoverInfo.getVipGroupId().longValue());
|
|
|
if(Objects.isNull(vipGroup)){
|
|
|
throw new BizException("指定的课程不存在");
|
|
@@ -1519,8 +1523,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
|
|
|
BigDecimal surplusCourseFee = new BigDecimal(0);
|
|
|
|
|
|
- Date now=new Date();
|
|
|
-
|
|
|
List<CourseSchedule> surplusCourseWithGroup = courseScheduleDao.findSurplusCourseWithGroup(GroupType.VIP, studentRecoverInfo.getVipGroupId().toString());
|
|
|
surplusCourseWithGroup.sort(Comparator.comparing(CourseSchedule::getStartClassTime));
|
|
|
|