wangning 7 years ago
commit aa424f3a88

@ -160,13 +160,15 @@ public class NoticeManageImpl implements NoticeManage {
ArrayList<String> mailboxs = new ArrayList<>();
for (String clientMoniker : client_monikers) {
JSONObject client = clientManager.getClientInfoByMoniker(clientMoniker);
client.put("create_time", date);
client.put("notice_id", noticeId);
noticePartnerMapper.save(client);
JSONObject c = new JSONObject();
c.put("create_time", date);
c.put("notice_id", noticeId);
c.put("client_id", client.getIntValue("client_id"));
noticePartnerMapper.save(c);
String contact_email = client.getString("contact_email");
if (contact_email!=null && !mailboxs.contains(contact_email)){
client.put("mailto",contact_email);
mailto.add(client);
c.put("mailto",contact_email);
mailto.add(c);
mailboxs.add(contact_email);
}
}
@ -182,6 +184,7 @@ public class NoticeManageImpl implements NoticeManage {
}
}
try {
logger.info(noticeId+"|"+info.getTitle()+"|"+mailto);
String mail_id = mailService.sendEmail(noticeId,info.getTitle(),mailto,info.getContent());
notice.put("mail_id",mail_id);
noticeManageMapper.updateNotice(notice);

Loading…
Cancel
Save