调整安鹏保证金抵扣为正常抵扣
This commit is contained in:
parent
d296871c92
commit
dc466405d8
@ -446,12 +446,13 @@ public class FundFundPlanExecutor {
|
||||
List<String> planDates = planBean.getPlanDateList();
|
||||
List<String> rentPlans = planBean.getRentList();
|
||||
//安鹏逻辑,只抵最后一期租金
|
||||
BigDecimal lastRent = new BigDecimal(rentPlans.get(rentPlans.size() - 1));
|
||||
BigDecimal cautionMoneyDeduction = new BigDecimal(cb.getCautionDeductionMoney());
|
||||
if(lastRent.compareTo(cautionMoneyDeduction) < 0) {
|
||||
cb.setCautionMoneyRemain(cautionMoneyDeduction.subtract(lastRent).toString());
|
||||
cb.setCautionDeductionMoney(lastRent.toString());
|
||||
}
|
||||
// 取消安鹏只抵最后一期逻辑 by zhulh 2021/08/19
|
||||
// BigDecimal lastRent = new BigDecimal(rentPlans.get(rentPlans.size() - 1));
|
||||
// BigDecimal cautionMoneyDeduction = new BigDecimal(cb.getCautionDeductionMoney());
|
||||
// if(lastRent.compareTo(cautionMoneyDeduction) < 0) {
|
||||
// cb.setCautionMoneyRemain(cautionMoneyDeduction.subtract(lastRent).toString());
|
||||
// cb.setCautionDeductionMoney(lastRent.toString());
|
||||
// }
|
||||
List<FundPlanBean> newFundPlans = new ArrayList<FundPlanBean>();
|
||||
if(Double.parseDouble(cb.getCautionMoneyRemain()) > 0){//退还保证金
|
||||
FundPlanBean newFundPlan=new FundPlanBean();
|
||||
@ -467,16 +468,7 @@ public class FundFundPlanExecutor {
|
||||
}
|
||||
if(Double.parseDouble(cb.getCautionDeductionMoney()) > 0){//抵扣保证金
|
||||
BigDecimal planMoney=new BigDecimal(cb.getCautionDeductionMoney());
|
||||
FundPlanBean newFundPlan=new FundPlanBean();
|
||||
newFundPlan.setFeeType(reduceType);
|
||||
newFundPlan.setPlanList("1");
|
||||
newFundPlan.setSettleMethod("payfund6");
|
||||
newFundPlan.setPayType("pay_type_out");
|
||||
newFundPlan.setPlanMoney(planMoney.toString());
|
||||
newFundPlan.setPlanDate(planDates.get(planDates.size() - 1));
|
||||
newFundPlan.setPayCust(custID);
|
||||
newFundPlans.add(newFundPlan);
|
||||
/*int planList=0;
|
||||
int planList=0;
|
||||
for(int i = planDates.size()-1 ; i >= 0 ; i--){
|
||||
planList++;
|
||||
BigDecimal rent=new BigDecimal(rentPlans.get(i));
|
||||
@ -511,7 +503,7 @@ public class FundFundPlanExecutor {
|
||||
cb.setDeductionLastPlanDate(planDates.get(i));
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}else{
|
||||
cb.setDeductionLastPlanDate(cb.getLastPlanDate());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user