|
@@ -376,7 +376,7 @@ public class SpringBeanTaskDemo {
|
|
List<Map<String, Object>> stringObjectMap = sysUserMapper.listUserCertFailure();
|
|
List<Map<String, Object>> stringObjectMap = sysUserMapper.listUserCertFailure();
|
|
if (CollUtil.isNotEmpty(stringObjectMap)) {
|
|
if (CollUtil.isNotEmpty(stringObjectMap)) {
|
|
|
|
|
|
- StringBuilder text = new StringBuilder("<table style=\"width:100%\">\n" +
|
|
|
|
|
|
+ StringBuilder text = new StringBuilder("<html><head></head><body><table style=\"width:100%\">\n" +
|
|
" <tr>\n" +
|
|
" <tr>\n" +
|
|
" <th>ID</th>\n" +
|
|
" <th>ID</th>\n" +
|
|
" <th>姓名</th>\n" +
|
|
" <th>姓名</th>\n" +
|
|
@@ -402,7 +402,9 @@ public class SpringBeanTaskDemo {
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
- text.append("</table>");
|
|
|
|
|
|
+ text.append("</table></body></html>");
|
|
|
|
+
|
|
|
|
+ log.info("table ==> {}", text);
|
|
Arrays.stream(re).forEach(reciver -> {
|
|
Arrays.stream(re).forEach(reciver -> {
|
|
MimeMessage mail = sender.createMimeMessage();
|
|
MimeMessage mail = sender.createMimeMessage();
|
|
try {
|
|
try {
|