Commit 15e02931 authored by LSL's avatar LSL

结清默认结清账单

parent 52496a13
...@@ -130,15 +130,15 @@ public class BackedBurdenJob { ...@@ -130,15 +130,15 @@ public class BackedBurdenJob {
String refundNo = SnowSequenceHelper.nextSequence(SnowSequenceHelper.REFUND_NO); String refundNo = SnowSequenceHelper.nextSequence(SnowSequenceHelper.REFUND_NO);
//生成 windows_repay 信息 //生成 windows_repay 信息
RepayModel repayModel = creditRepay(model, refundNo); RepayModel repayModel = creditRepay(model, refundNo);
loanRepayComponent.insert(repayModel);
//生成 windows_backed_detail 信息 //生成 windows_backed_detail 信息
BackedDetailModel backedDetailModel = creditBackedDetailModel(model, refundNo); BackedDetailModel backedDetailModel = creditBackedDetailModel(model, refundNo);
backedDetailComponent.insert(backedDetailModel);
//修改 windows_plan backAmt 信息 还款状态 //修改 windows_plan backAmt 信息 还款状态
upWindowsPlan(model); upWindowsPlan(model);
//修改 windows_loan 还款状态 //修改 windows_loan 还款状态
LoanModel loanModel = loanComponent.getByLoanNo(model.getLoanNo()); LoanModel loanModel = loanComponent.getByLoanNo(model.getLoanNo());
upWindowsLoan(loanModel); upWindowsLoan(loanModel);
loanRepayComponent.insert(repayModel);
backedDetailComponent.insert(backedDetailModel);
} }
/** /**
...@@ -199,7 +199,7 @@ public class BackedBurdenJob { ...@@ -199,7 +199,7 @@ public class BackedBurdenJob {
planModel.setBackedBurden(new BigDecimal(model.getPepayBurden())); planModel.setBackedBurden(new BigDecimal(model.getPepayBurden()));
BigDecimal planAmt = planModel.getPlanBen().add(planModel.getPlanXi()).add(planModel.getPlanFu()).add(planModel.getPlanFa()).add(planModel.getPlanBurden()); BigDecimal planAmt = planModel.getPlanBen().add(planModel.getPlanXi()).add(planModel.getPlanFu()).add(planModel.getPlanFa()).add(planModel.getPlanBurden());
BigDecimal backedAmt = planModel.getBackedBen().add(planModel.getBackedXi()).add(planModel.getBackedFu()).add(planModel.getBackedFa()).add(planModel.getBackedBurden()); BigDecimal backedAmt = planModel.getBackedBen().add(planModel.getBackedXi()).add(planModel.getBackedFu()).add(planModel.getBackedFa()).add(planModel.getBackedBurden());
if (planAmt.compareTo(backedAmt) == 0) { if (!(planAmt.compareTo(backedAmt) > 0)) {
planModel.setStatus(LoanStatusEnum.SETTLED.getCode()); planModel.setStatus(LoanStatusEnum.SETTLED.getCode());
} }
loanPlanComponent.updateByLoanPlanModel(planModel); loanPlanComponent.updateByLoanPlanModel(planModel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment