|
@@ -1925,6 +1925,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
if (studentRegistration.getNoneNeedCloudTeacher().equals(1)) {
|
|
|
throw new BizException("该学生已设置");
|
|
|
}
|
|
|
+ studentRegistration.setPayingStatus(0);
|
|
|
studentRegistration.setNoneNeedCloudTeacher(1);
|
|
|
if (studentRegistrationDao.update(studentRegistration) <= 0) {
|
|
|
throw new BizException("设置失败,请重试");
|
|
@@ -1942,14 +1943,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
if (!studentRegistration.getPaymentStatus().equals(YES)) {
|
|
|
throw new BizException("该学生状态已更新,请刷新查看");
|
|
|
}
|
|
|
- studentRegistration.setPayingStatus(0);
|
|
|
- studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.NORMAL);
|
|
|
- studentRegistrationDao.update(studentRegistration);
|
|
|
- StudentPaymentOrder order = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(studentRegistration.getUserId(), studentRegistration.getMusicGroupId(), DealStatusEnum.SUCCESS);
|
|
|
- order.setPaymentAccountNo("200");
|
|
|
- if(studentPaymentOrderService.update(order)<=0){
|
|
|
- throw new BizException("订单处理失败,请重试");
|
|
|
- }
|
|
|
|
|
|
MusicGroupSubjectPlan musicOneSubjectClassPlan = musicGroupSubjectPlanService.getMusicOneSubjectClassPlan(studentRegistration.getMusicGroupId(), studentRegistration.getActualSubjectId());
|
|
|
|
|
@@ -1959,6 +1952,15 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ studentRegistration.setPayingStatus(0);
|
|
|
+ studentRegistration.setMusicGroupStatus(StudentMusicGroupStatusEnum.NORMAL);
|
|
|
+ studentRegistrationDao.update(studentRegistration);
|
|
|
+ StudentPaymentOrder order = studentPaymentOrderService.findMusicGroupApplyOrderByStatus(studentRegistration.getUserId(), studentRegistration.getMusicGroupId(), DealStatusEnum.SUCCESS);
|
|
|
+ order.setPaymentAccountNo("200");
|
|
|
+ if(studentPaymentOrderService.update(order)<=0){
|
|
|
+ throw new BizException("订单处理失败,请重试");
|
|
|
+ }
|
|
|
+
|
|
|
int paidNum = musicOneSubjectClassPlan.getPaidStudentNum() == null ? 0 : musicOneSubjectClassPlan.getPaidStudentNum();
|
|
|
int paidZeroNum = musicOneSubjectClassPlan.getPaidZeroNum() == null ? 0 : musicOneSubjectClassPlan.getPaidZeroNum();
|
|
|
musicOneSubjectClassPlan.setPaidZeroNum(paidZeroNum + 1);
|