|
@@ -125,14 +125,13 @@ public class MusicGroupPaymentStudentCourseDetailServiceImpl extends BaseService
|
|
|
&& chargeType.getFee().compareTo(orderMusical.getPrice()) < 0){
|
|
|
musicalFee = orderMusical.getPrice().subtract(chargeType.getFee());
|
|
|
//累加充值金额
|
|
|
- studentRegistration.setSurplusCourseFee(studentRegistration.getSurplusCourseFee().add(musicalFee));
|
|
|
- studentRegistrationDao.update(studentRegistration);
|
|
|
+ studentRegistrationDao.updateCourseFee(studentRegistration.getId(),musicalFee);
|
|
|
//添加日志
|
|
|
StudentCourseFeeDetail studentCourseFeeDetail = new StudentCourseFeeDetail();
|
|
|
studentCourseFeeDetail.setTenantId(musicGroup.getTenantId());
|
|
|
studentCourseFeeDetail.setStudentRegistrationId(studentRegistration.getId());
|
|
|
studentCourseFeeDetail.setAmount(musicalFee);
|
|
|
- studentCourseFeeDetail.setSurplusCourseFee(studentRegistration.getSurplusCourseFee());
|
|
|
+ studentCourseFeeDetail.setSurplusCourseFee(studentRegistration.getSurplusCourseFee().add(musicalFee));
|
|
|
studentCourseFeeDetail.setMemo("免费团,购买乐器赠送课费");
|
|
|
studentCourseFeeDetail.setOperator(userId);
|
|
|
studentCourseFeeDetailDao.insert(studentCourseFeeDetail);
|