Commit 73a96dc9 authored by LSL's avatar LSL

还款对账文件

parent 04150777
...@@ -199,12 +199,17 @@ public class BackedJob { ...@@ -199,12 +199,17 @@ public class BackedJob {
return parse; return parse;
} }
private static LocalDate getLocalDate(String time) { private LocalDate getLocalDate(String time) {
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd"); DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
LocalDate parse = LocalDate.parse(time, dateTimeFormatter); LocalDate parse = LocalDate.parse(time, dateTimeFormatter);
return parse; return parse;
} }
private String getStringTime(String time) {
time = time.substring(0, 4) + "-" + time.substring(4, 6) + "-" + time.substring(6, 8);
return time;
}
/** /**
* @param model * @param model
...@@ -243,7 +248,7 @@ public class BackedJob { ...@@ -243,7 +248,7 @@ public class BackedJob {
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());
overduedComponent.updateOverduedByPlanNo(planModel.getPlanNo(), model.getRepayDate()); overduedComponent.updateOverduedByPlanNo(planModel.getPlanNo(), getStringTime(model.getRepayDate()));
} }
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