|
@@ -1440,16 +1440,16 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
throw new BizException("学员注册信息不存在");
|
|
|
}
|
|
|
|
|
|
- if(BigDecimal.ZERO.compareTo(amount)==0){
|
|
|
- return BigDecimal.ZERO;
|
|
|
- }
|
|
|
-
|
|
|
if(BigDecimal.ZERO.compareTo(amount)>0&&amount.abs().compareTo(studentRegistration.getSurplusCourseFee())>0){
|
|
|
amount = studentRegistration.getSurplusCourseFee().negate();
|
|
|
}
|
|
|
|
|
|
studentRegistration.setSurplusCourseFee(studentRegistration.getSurplusCourseFee().add(amount));
|
|
|
|
|
|
+ if(BigDecimal.ZERO.compareTo(amount)==0){
|
|
|
+ return BigDecimal.ZERO;
|
|
|
+ }
|
|
|
+
|
|
|
StudentCourseFeeDetail studentCourseFeeDetail = new StudentCourseFeeDetail();
|
|
|
studentCourseFeeDetail.setStudentRegistrationId(studentRegistration.getId());
|
|
|
studentCourseFeeDetail.setAmount(amount);
|