|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|