修改尾款根据尾款处置方式修改租金计划
This commit is contained in:
parent
d25b470d46
commit
bc742a6a09
@ -161,6 +161,7 @@ public class ConditionBean implements Cloneable{
|
||||
private String corpusType; // 还本方式
|
||||
private String corpus; // 期限内本金
|
||||
private String finalPayment; //尾款
|
||||
private String finalPaymentMethod; //尾款处置方式
|
||||
//**********************************************************************【众联车贷测算参与融资资金项结束!】
|
||||
|
||||
/***********************************************************************************
|
||||
@ -1709,4 +1710,10 @@ public class ConditionBean implements Cloneable{
|
||||
public void setFinalPayment(String finalPayment) {
|
||||
this.finalPayment = finalPayment;
|
||||
}
|
||||
public String getFinalPaymentMethod() {
|
||||
return finalPaymentMethod;
|
||||
}
|
||||
public void setFinalPaymentMethod(String finalPaymentMethod) {
|
||||
this.finalPaymentMethod = finalPaymentMethod;
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ public class RentalServiceImpl {
|
||||
public List<String> getNormalRentList(ConditionBean cb, List<String> rent_list, String rent) {
|
||||
BigDecimal finalPayment = new BigDecimal(cb.getFinalPayment());
|
||||
for (int i = 0; i < cb.getIncomeNumber(); i++) {
|
||||
if(i == cb.getIncomeNumber() - 1 && finalPayment.compareTo(BigDecimal.ONE) != 0) {
|
||||
if(i == cb.getIncomeNumber() - 1 && finalPayment.compareTo(BigDecimal.ONE) != 0 && "final_payment_method02".equals(cb.getFinalPaymentMethod())) {
|
||||
rent_list.add(finalPayment.add(new BigDecimal(rent)).toString());
|
||||
} else {
|
||||
rent_list.add(rent);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user