|
|
|
@ -1156,7 +1156,8 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
Context ctx = new Context();
|
|
|
|
|
ctx.setVariable("date", DateFormatUtils.format(date, "dd-MM-yyyy"));
|
|
|
|
|
ctx.setVariable("abaFiles", abaFileList);
|
|
|
|
|
ctx.setVariable("totalAmount", abaFileList.stream().map(ABAFile::getTotalSettleAmount).reduce(BigDecimal::add));
|
|
|
|
|
BigDecimal total = abaFileList.stream().map(ABAFile::getTotalSettleAmount).reduce(BigDecimal::add).orElse(BigDecimal.ZERO);
|
|
|
|
|
ctx.setVariable("totalAmount", total.setScale(2, RoundingMode.DOWN).toPlainString());
|
|
|
|
|
final String content = thymeleaf.process("mail/settlement_mail", ctx);
|
|
|
|
|
// 测试用地址
|
|
|
|
|
// String mailId = mailService.sendEmail(title, "164851225@qq.com", "1029811920@qq.com", content,
|
|
|
|
|