mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-11 21:40:19 +08:00
提现金额为昨日金额
This commit is contained in:
@@ -811,12 +811,15 @@ public class AdapayService {
|
|||||||
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_MEMBER_IS_NULL_ERROR);
|
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_MEMBER_IS_NULL_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 提现金额为昨日金额
|
||||||
|
BigDecimal lastAvlBalance = adapayAccountBalanceVO.getLastAvlBalance();
|
||||||
|
|
||||||
// 提现手续费 每笔固定5元 2025年2月13日11点47分手续费改为参数传入
|
// 提现手续费 每笔固定5元 2025年2月13日11点47分手续费改为参数传入
|
||||||
// BigDecimal feeAmt = new BigDecimal("5");
|
// BigDecimal feeAmt = new BigDecimal("5");
|
||||||
BigDecimal feeAmt = new BigDecimal(dto.getFeeAmt());
|
BigDecimal feeAmt = new BigDecimal(dto.getFeeAmt());
|
||||||
|
|
||||||
// 实际提现到账金额
|
// 实际提现到账金额
|
||||||
BigDecimal cashAmt = adapayAccountBalanceVO.getAvlBalance().subtract(feeAmt);
|
BigDecimal cashAmt = lastAvlBalance.subtract(feeAmt);
|
||||||
|
|
||||||
// 可提现金额减去手续费后需大于0
|
// 可提现金额减去手续费后需大于0
|
||||||
if (cashAmt.compareTo(BigDecimal.ZERO) <= 0) {
|
if (cashAmt.compareTo(BigDecimal.ZERO) <= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user