Selaa lähdekoodia

fix: style v1

shc 2 vuotta sitten
vanhempi
commit
1873c04962

+ 4 - 2
hnqz-visual/hnqz-daemon-quartz/src/main/java/com/qunzhixinxi/hnqz/daemon/quartz/task/SpringBeanTaskDemo.java

@@ -376,7 +376,7 @@ public class SpringBeanTaskDemo {
 		List<Map<String, Object>> stringObjectMap = sysUserMapper.listUserCertFailure();
 		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" +
 					"        <th>ID</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 -> {
 				MimeMessage mail = sender.createMimeMessage();
 				try {