|
@@ -152,6 +152,11 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
}
|
|
|
degree.setStatus(0);
|
|
|
degreeRegistrationDao.update(degree);
|
|
|
+
|
|
|
+ degreeRegistration.setStatus(1);
|
|
|
+ degreeRegistration.setCreateTime(nowDate);
|
|
|
+ degreeRegistration.setUpdateTime(nowDate);
|
|
|
+ degreeRegistrationDao.insert(degreeRegistration);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -187,6 +192,10 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
|
|
|
BigDecimal practiceUnitPrice = practiceGroupSellPrice.getOnceOriginalPrice(),
|
|
|
vipUnitPrice = practiceGroupSellPrice.getVipOneStudentTwelveCourseActivityPriceWithNewUser(), highUnitPrice;
|
|
|
+
|
|
|
+ if(additionCourseInfo.containsKey(CourseSchedule.CourseScheduleType.HIGH)){
|
|
|
+ historyHighNum = historyHighNum + additionCourseInfo.get(CourseSchedule.CourseScheduleType.HIGH);
|
|
|
+ }
|
|
|
if(student.getIsNewUser()){
|
|
|
highUnitPrice = practiceGroupSellPrice.getHighOnlineTenCourseOriginalPriceWithNewUser();
|
|
|
if(additionCourseInfo.containsKey(CourseSchedule.CourseScheduleType.VIP)){
|
|
@@ -195,9 +204,6 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
if(historyVipNum<=0){
|
|
|
additionCourseInfo.remove(CourseSchedule.CourseScheduleType.PRACTICE);
|
|
|
}
|
|
|
- if(additionCourseInfo.containsKey(CourseSchedule.CourseScheduleType.HIGH)){
|
|
|
- historyHighNum = historyHighNum + additionCourseInfo.get(CourseSchedule.CourseScheduleType.HIGH);
|
|
|
- }
|
|
|
boolean vipMoreThan2 = historyVipNum>=2;
|
|
|
if(vipMoreThan2){
|
|
|
if(FREE_PRICE_LEVEL.contains(degreeRegistration.getLevel())){
|
|
@@ -321,6 +327,8 @@ public class DegreeRegistrationServiceImpl extends BaseServiceImpl<Integer, Degr
|
|
|
}
|
|
|
|
|
|
if (degree == null || !degree.getStatus().equals(1)) {
|
|
|
+ studentPaymentOrder.setMemo("订单状态已变更");
|
|
|
+ studentPaymentOrderService.update(studentPaymentOrder);
|
|
|
return true;
|
|
|
}
|
|
|
degree.setOrderNo(studentPaymentOrder.getOrderNo());
|