Commit 04150777 authored by LSL's avatar LSL

还款对账文件

parent 98d1a363
......@@ -6,9 +6,11 @@ import cn.hutool.core.util.CharsetUtil;
import cn.hutool.extra.ssh.Sftp;
import com.jqtx.infrastructure.oss.starter.config.OssUtils;
import com.jqtx.windows.common.config.SftpConfig;
import com.jqtx.windows.component.*;
import com.jqtx.windows.component.BackedDetailComponent;
import com.jqtx.windows.component.LoanPlanComponent;
import com.jqtx.windows.component.LoanRepayComponent;
import com.jqtx.windows.component.OverduedComponent;
import com.jqtx.windows.component.enums.LoanStatusEnum;
import com.jqtx.windows.component.impl.BackedBurdenComponentImpl;
import com.jqtx.windows.component.model.BackedDetailModel;
import com.jqtx.windows.component.model.BackedFileModel;
import com.jqtx.windows.component.model.LoanPlanModel;
......@@ -39,12 +41,6 @@ public class BackedJob {
@Autowired
private LoanPlanComponent loanPlanComponent;
@Autowired
private BackedBurdenComponentImpl backedBurdenComponent;
@Autowired
private LoanComponent loanComponent;
@Autowired
private LoanRepayComponent loanRepayComponent;
......@@ -203,6 +199,12 @@ public class BackedJob {
return parse;
}
private static LocalDate getLocalDate(String time) {
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
LocalDate parse = LocalDate.parse(time, dateTimeFormatter);
return parse;
}
/**
* @param model
......@@ -214,7 +216,7 @@ public class BackedJob {
BackedDetailModel debtBackedModel = new BackedDetailModel();
debtBackedModel.setBackedNo(refundNo);
debtBackedModel.setPlanNo(getPlanNo(model.getLoanReqNo(), model.getRepayTerm()));
debtBackedModel.setBackedDate(LocalDate.now().minusDays(1));
debtBackedModel.setBackedDate(getLocalDate(model.getRepayDate()));
debtBackedModel.setBackedAmt(new BigDecimal(model.getRepayAmount()));
debtBackedModel.setBackedBen(new BigDecimal(model.getRepayPrincipal()));
debtBackedModel.setBackedXi(new BigDecimal(model.getRepayInterest()));
......
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