|
@@ -2005,10 +2005,12 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
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("订单处理失败,请重试");
|
|
|
- }
|
|
|
+ if (order != null) {
|
|
|
+ order.setPaymentAccountNo("200");
|
|
|
+ if (studentPaymentOrderService.update(order) <= 0) {
|
|
|
+ throw new BizException("订单处理失败,请重试");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
musicOneSubjectClassPlan.setPaidZeroNum(paidZeroNum + 1);
|
|
|
musicOneSubjectClassPlan.setPaidStudentNum(paidNum + 1);
|