|
|
@ -4846,6 +4846,30 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl |
|
|
|
voucherResultDetailDtoDf.setDimensionCustom(customerNumber); |
|
|
|
voucherResultDetailDtoDf.setCredit(v.getSubscriptionMoney()); |
|
|
|
list.add(voucherResultDetailDtoDf); |
|
|
|
if("月还".equals(v.getReceivablesName())){ |
|
|
|
if(planDetails.getPaymentMoney() != null){ |
|
|
|
if (planDetails.getPaymentMoney().compareTo(BigDecimal.ZERO) >0) { |
|
|
|
BigDecimal paymentMoney = planDetails.getPaymentMoney(); |
|
|
|
String subscriptionMoney = v.getSubscriptionMoney(); |
|
|
|
BigDecimal subtract = paymentMoney.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentMoney(subtract); |
|
|
|
loanRepaymentPlanDetailsFeign.updateByEntity(planDetails); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(planDetails.getPaymentInterest() != null){ |
|
|
|
if(planDetails.getPaymentInterest().compareTo(BigDecimal.ZERO)>0){ |
|
|
|
BigDecimal paymentInterest = planDetails.getPaymentInterest(); |
|
|
|
String subscriptionMoney = v.getSubscriptionMoney(); |
|
|
|
BigDecimal subtract = paymentInterest.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentInterest(subtract); |
|
|
|
BigDecimal paymentMoney = planDetails.getPaymentMoney(); |
|
|
|
BigDecimal subtract2 = paymentMoney.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentMoney(subtract2); |
|
|
|
loanRepaymentPlanDetailsFeign.updateByEntity(planDetails); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//应收贷款车欠款_到期欠款_逾期利息--资金占用费
|
|
|
@ -4879,6 +4903,30 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl |
|
|
|
voucherResultDetailDtoDf.setDimensionCustom(customerNumber); |
|
|
|
voucherResultDetailDtoDf.setCredit(v.getSubscriptionMoney()); |
|
|
|
list2.add(voucherResultDetailDtoDf); |
|
|
|
if("月还".equals(v.getReceivablesName())){ |
|
|
|
if(planDetails.getPaymentMoney() != null){ |
|
|
|
if (planDetails.getPaymentMoney().compareTo(BigDecimal.ZERO) >0) { |
|
|
|
BigDecimal paymentMoney = planDetails.getPaymentMoney(); |
|
|
|
String subscriptionMoney = v.getSubscriptionMoney(); |
|
|
|
BigDecimal subtract = paymentMoney.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentMoney(subtract); |
|
|
|
loanRepaymentPlanDetailsFeign.updateByEntity(planDetails); |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(planDetails.getPaymentInterest() != null){ |
|
|
|
if(planDetails.getPaymentInterest().compareTo(BigDecimal.ZERO)>0){ |
|
|
|
BigDecimal paymentInterest = planDetails.getPaymentInterest(); |
|
|
|
String subscriptionMoney = v.getSubscriptionMoney(); |
|
|
|
BigDecimal subtract = paymentInterest.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentInterest(subtract); |
|
|
|
BigDecimal paymentMoney = planDetails.getPaymentMoney(); |
|
|
|
BigDecimal subtract2 = paymentMoney.subtract(new BigDecimal(subscriptionMoney)); |
|
|
|
planDetails.setPaymentMoney(subtract2); |
|
|
|
loanRepaymentPlanDetailsFeign.updateByEntity(planDetails); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ("资金占用费".equals(v.getReceivablesName())) { |
|
|
|