提现金额为昨日金额

This commit is contained in:
Guoqs
2025-03-13 16:58:16 +08:00
parent 6fdfe513a7
commit 3ebbeb4d35

View File

@@ -811,12 +811,15 @@ public class AdapayService {
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_MEMBER_IS_NULL_ERROR);
}
// 提现金额为昨日金额
BigDecimal lastAvlBalance = adapayAccountBalanceVO.getLastAvlBalance();
// 提现手续费 每笔固定5元 2025年2月13日11点47分手续费改为参数传入
// BigDecimal feeAmt = new BigDecimal("5");
BigDecimal feeAmt = new BigDecimal(dto.getFeeAmt());
// 实际提现到账金额
BigDecimal cashAmt = adapayAccountBalanceVO.getAvlBalance().subtract(feeAmt);
BigDecimal cashAmt = lastAvlBalance.subtract(feeAmt);
// 可提现金额减去手续费后需大于0
if (cashAmt.compareTo(BigDecimal.ZERO) <= 0) {