eason.qian 7 years ago
parent 4b29f6097c
commit 0aebf1bfc3

@ -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);
}
}

Loading…
Cancel
Save