|
@@ -259,6 +259,14 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(Objects.nonNull(vipGroupActivity.getAttribute3())){
|
|
|
+ Integer maxCourseNum = Integer.parseInt(vipGroupActivity.getAttribute3());
|
|
|
+ Integer requestCourseNum = vipGroupApplyBaseInfoDto.getOnlineClassesNum() + vipGroupApplyBaseInfoDto.getOfflineClassesNum();
|
|
|
+ if(requestCourseNum.compareTo(maxCourseNum)>0){
|
|
|
+ throw new BizException("该活动课时数为{}节", maxCourseNum);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
int repeatVipGroups = vipGroupDao.countUserRepeatVipGroupInCourseStartEndTime(vipGroupApplyBaseInfoDto.getUserId(), firstCourseSchedule.getStartClassTime(), latestCourseSchedule.getEndClassTime());
|
|
|
if(repeatVipGroups>0){
|
|
|
throw new BizException("请勿重复提交");
|