|
@@ -260,7 +260,7 @@ public class InvoiceServiceImpl extends ServiceImpl<IInvoiceMapper, Invoice> imp
|
|
|
log.info("异步任务执行,当前线程:" + Thread.currentThread().getName());
|
|
log.info("异步任务执行,当前线程:" + Thread.currentThread().getName());
|
|
|
if("aws".equals(NacosProperty.uploadType) && dbEntity.getEmailAddress() != null){
|
|
if("aws".equals(NacosProperty.uploadType) && dbEntity.getEmailAddress() != null){
|
|
|
MailTemplate mailTemplate = mailTemplateService.getTemplate(14, "en");
|
|
MailTemplate mailTemplate = mailTemplateService.getTemplate(14, "en");
|
|
|
- dbEntity.setCreateTime(DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
|
|
+ dbEntity.setCreateTime(DateUtil.format(new Date(),"yyyy-MM-dd"));
|
|
|
String filePath = MyExcelUtil.excelTemplteToPdf(OssPath.localPath +"/invoice", "invoiceTemplate", dbEntity);
|
|
String filePath = MyExcelUtil.excelTemplteToPdf(OssPath.localPath +"/invoice", "invoiceTemplate", dbEntity);
|
|
|
mailTemplateService.sendMail(dbEntity.getEmailAddress(),mailTemplate,filePath);
|
|
mailTemplateService.sendMail(dbEntity.getEmailAddress(),mailTemplate,filePath);
|
|
|
FileUtil.delFile(filePath);
|
|
FileUtil.delFile(filePath);
|