|
@@ -175,10 +175,13 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
throw new BizException("课时安排时间超出范围!");
|
|
|
}
|
|
|
}else{
|
|
|
- VipGroupDefaultClassesCycle vipGroupDefaultClassesCycle = vipGroupDefaultClassesCycleDao.findByOrganAndClassTimes(Long.parseLong(sysUser.getOrganId()), totalClassTimes);
|
|
|
- int month = DateUtil.monthsBetween(firstCourseSchedule.getStartClassTime(), latestCourseSchedule.getEndClassTime());
|
|
|
- if(month>vipGroupDefaultClassesCycle.getMonth()){
|
|
|
- throw new BizException("课时安排时间超出范围!");
|
|
|
+ VipGroupDefaultClassesCycle vipGroupDefaultClassesCycle = vipGroupDefaultClassesCycleDao.findByOrganAndClassTimes(totalClassTimes);
|
|
|
+
|
|
|
+ if (vipGroupDefaultClassesCycle != null) {
|
|
|
+ int month = DateUtil.monthsBetween(firstCourseSchedule.getStartClassTime(), latestCourseSchedule.getEndClassTime());
|
|
|
+ if (month > vipGroupDefaultClassesCycle.getMonth()) {
|
|
|
+ throw new BizException("课时安排时间超出范围!");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -993,8 +996,8 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
Map<String,Object> payMap = payService.getPayMap(
|
|
|
amount,
|
|
|
orderNo,
|
|
|
- "http://mstudev.dayaedu.com/api-student/studentOrder/notify",
|
|
|
- "http://mstudev.dayaedu.com/#/paymentresult?orderNo=" + orderNo,
|
|
|
+ "http://mstutest.dayaedu.com/api-student/studentOrder/notify",
|
|
|
+ "http://mstutest.dayaedu.com/#/paymentresult?orderNo=" + orderNo,
|
|
|
"vip课购买",
|
|
|
vipGroup.getName());
|
|
|
studentPaymentOrder.setPaymentChannel((String) payMap.get("type"));
|