yonge 5 年之前
父節點
當前提交
08885dc544
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/MusicGroupServiceImpl.java

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/MusicGroupServiceImpl.java

@@ -1597,6 +1597,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
             if (userCashAccount.getBalance().subtract(amount).doubleValue() >= 0) {
             if (userCashAccount.getBalance().subtract(amount).doubleValue() >= 0) {
                 // 更新订单信息
                 // 更新订单信息
                 studentPaymentOrder.setBalancePaymentAmount(amount);
                 studentPaymentOrder.setBalancePaymentAmount(amount);
+                studentPaymentOrder.setActualAmount(new BigDecimal(0));
                 studentPaymentOrder.setStatus(DealStatusEnum.SUCCESS);
                 studentPaymentOrder.setStatus(DealStatusEnum.SUCCESS);
                 studentPaymentOrder.setUpdateTime(date);
                 studentPaymentOrder.setUpdateTime(date);
                 studentPaymentOrder.setOrganId(musicGroup.getOrganId());
                 studentPaymentOrder.setOrganId(musicGroup.getOrganId());
@@ -1635,6 +1636,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
                     sysUserCashAccountService.updateBalance(userId, userCashAccount.getBalance().negate(), PlatformCashAccountDetailTypeEnum.PAY_FEE, "乐团续费");
                     sysUserCashAccountService.updateBalance(userId, userCashAccount.getBalance().negate(), PlatformCashAccountDetailTypeEnum.PAY_FEE, "乐团续费");
                     amount = amount.subtract(userCashAccount.getBalance());
                     amount = amount.subtract(userCashAccount.getBalance());
                     studentPaymentOrder.setBalancePaymentAmount(userCashAccount.getBalance());
                     studentPaymentOrder.setBalancePaymentAmount(userCashAccount.getBalance());
+                    studentPaymentOrder.setActualAmount(studentPaymentOrder.getActualAmount().subtract(userCashAccount.getBalance()));
                 } else {
                 } else {
                     studentPaymentOrder.setBalancePaymentAmount(new BigDecimal(0));
                     studentPaymentOrder.setBalancePaymentAmount(new BigDecimal(0));
                 }
                 }