Browse Source

优化月还计提定时任务、优化退车无法生成还款计划表2

master
fanzongzhe0036 3 weeks ago
parent
commit
098ca18c69
  1. 31
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java

31
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java

@ -2155,22 +2155,21 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
e.printStackTrace();
}
}
// // 生成还款计划表pdf
// String template = "/template/";
// String returnPath = "";
// LoanCreateScheduleVinsVo createScheduleVinsVo = viewVinsSchedule(dto.getSalesOrderSid()).getData();
// if (null != createScheduleVinsVo) {
// String pdfPath = commonCreatePdf(createScheduleVinsVo);
// String filePath = pdfPath.substring(docPdfComponent.getUploadTemplateUrl().length());
// returnPath = template + filePath;
// LoanRepaymentSchedule entity = baseMapper.selectByContractSid(dto.getSalesOrderSid());
// if (null != entity) {
// entity.setSchedulePath(filePath);
// baseMapper.updateById(entity);
// }
// }
// return rb.success().setData(returnPath);
return rb.success();
// 生成还款计划表pdf
String template = "/template/";
String returnPath = "";
LoanCreateScheduleVinsVo createScheduleVinsVo = viewVinsSchedule(dto.getSalesOrderSid()).getData();
if (null != createScheduleVinsVo) {
String pdfPath = commonCreatePdf(createScheduleVinsVo);
String filePath = pdfPath.substring(docPdfComponent.getUploadTemplateUrl().length());
returnPath = template + filePath;
LoanRepaymentSchedule entity = baseMapper.selectByContractSid(dto.getSalesOrderSid());
if (null != entity) {
entity.setSchedulePath(filePath);
baseMapper.updateById(entity);
}
}
return rb.success().setData(returnPath);
}

Loading…
Cancel
Save