|
@@ -795,9 +795,9 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
|
|
|
//插入交易明细
|
|
|
- if (studentPaymentOrder.getActualAmount() != null && studentPaymentOrder.getActualAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ BigDecimal amount = studentPaymentOrder.getActualAmount();
|
|
|
+ if (amount != null && amount.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
SysUserCashAccount cashAccount = sysUserCashAccountService.get(studentRegistration.getUserId());
|
|
|
- BigDecimal amount = studentPaymentOrder.getActualAmount();
|
|
|
//充值
|
|
|
SysUserCashAccountDetail rechargeDetail = new SysUserCashAccountDetail();
|
|
|
rechargeDetail.setAmount(amount);
|