提交 4d238ac8 作者: xiaowang

bug修复

上级 3fceda94
...@@ -170,25 +170,24 @@ public class LeaseOrderServiceImpl implements LeaseOrderService { ...@@ -170,25 +170,24 @@ public class LeaseOrderServiceImpl implements LeaseOrderService {
// 够抵扣押金 // 够抵扣押金
shareCashPledge = otherCashPledge; shareCashPledge = otherCashPledge;
} }
otherCashPledge = otherCashPledge.subtract(shareCashPledge); }
if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) { otherCashPledge = otherCashPledge.subtract(shareCashPledge);
otherAmount = otherAmount.subtract(shareCashPledge); if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) {
} else { otherAmount = otherAmount.subtract(shareCashPledge);
if (param.getDeductSalaryAmount().equals(1)) { } else {
if (otherCashPledge.compareTo(payWalletDTO.getSalaryAmt()) >= 0) { if (param.getDeductSalaryAmount().equals(1)) {
salaryCashPledge = payWalletDTO.getSalaryAmt(); if (otherCashPledge.compareTo(payWalletDTO.getSalaryAmt()) >= 0) {
} else { salaryCashPledge = payWalletDTO.getSalaryAmt();
salaryCashPledge = otherCashPledge; } else {
} salaryCashPledge = otherCashPledge;
otherCashPledge = otherCashPledge.subtract(salaryCashPledge); }
if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) { otherCashPledge = otherCashPledge.subtract(salaryCashPledge);
otherAmount = otherAmount.subtract(salaryCashPledge.add(shareCashPledge)); if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) {
} else { otherAmount = otherAmount.subtract(salaryCashPledge.add(shareCashPledge));
otherPledge = otherCashPledge; } else {
} otherPledge = otherCashPledge;
} }
} }
} }
// 抵扣完后当押金为0的时候 继续抵扣其余金额 // 抵扣完后当押金为0的时候 继续抵扣其余金额
if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) { if (otherCashPledge.compareTo(BigDecimal.ZERO) == 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论