From 4b29f6097c10d3784f74e7d12904488b7ef63453 Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Thu, 29 Mar 2018 14:27:48 +0800 Subject: [PATCH 1/2] fix --- .../payment/manage/notice/core/impls/NoticeManageImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java index 829853346..33a6af9c2 100644 --- a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java @@ -182,6 +182,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); From 0aebf1bfc397f6b66966c90cdbbabfed3be93d7b Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Thu, 29 Mar 2018 14:43:57 +0800 Subject: [PATCH 2/2] fix --- .../manage/notice/core/impls/NoticeManageImpl.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java index 33a6af9c2..cbb9414dc 100644 --- a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/NoticeManageImpl.java @@ -160,13 +160,15 @@ public class NoticeManageImpl implements NoticeManage { ArrayList 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); } }