提现手续费改为参数传入

This commit is contained in:
Guoqs
2025-02-13 11:49:52 +08:00
parent cbff91cada
commit cd3aced52f
5 changed files with 32 additions and 7 deletions

View File

@@ -14,6 +14,9 @@ public class WithdrawDTO {
// 提现金额
private String cashAmt;
// 手续费
private String feeAmt;
// 微信小程序appId
private String wechatAppId;
}

View File

@@ -811,8 +811,9 @@ public class AdapayService {
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_MEMBER_IS_NULL_ERROR);
}
// 提现手续费 每笔固定5元
BigDecimal feeAmt = new BigDecimal("5");
// 提现手续费 每笔固定5元 2025年2月13日11点47分手续费改为参数传入
// BigDecimal feeAmt = new BigDecimal("5");
BigDecimal feeAmt = new BigDecimal(dto.getFeeAmt());
// 实际提现到账金额
BigDecimal cashAmt = adapayAccountBalanceVO.getAvlBalance().subtract(feeAmt);