@@ -104,7 +104,7 @@ public class EmailBo {
}
/**
- * 通用模版
+ * 旧通用模版
* @param subject
* @param address
* @param deptname
@@ -133,7 +133,7 @@ public class EmailBo {
- *
+ * 最新通用模版
* @param subject 标题
* @param address 邮件地址
* @param content 内容
@@ -217,14 +217,14 @@ public class AsyncUtils {
if (!list.isEmpty()){
List<Notice> notes=new ArrayList<>();
-
+ StringBuffer emails=new StringBuffer();
for (String s : list) {
notes.add(new Notice(UUID.randomUUID().toString(), new Date(), 0, s,
noticeType, str));
+ emails=emails.append("s").append(",");
noticeMapper.insertBatch(notes);
+ send(new EmailBo(NoticeStatus.getValueByCode(noticeType),emails.substring(0,emails.length()-1),str));