|
|
@@ -135,6 +135,7 @@ public class AsyncUtils {
|
|
|
try {
|
|
|
for (EmailBo emailBo : list) {
|
|
|
SendEmailUtil.getInstance().send(emailBo);
|
|
|
+ LoggerUtils.debug(getClass(),String.format("=============发送邮件==>%s===>%s",emailBo.getSubject(),emailBo.getAddress()));
|
|
|
}
|
|
|
} catch (MessagingException e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -147,7 +148,7 @@ public class AsyncUtils {
|
|
|
public void send(EmailBo bo){
|
|
|
try {
|
|
|
SendEmailUtil.getInstance().send(bo);
|
|
|
- LoggerUtils.debug(getClass(),String.format("发送邮件==>%s===>%s",bo.getSubject(),bo.getAddress()));
|
|
|
+ LoggerUtils.debug(getClass(),String.format("=============发送邮件==>%s===>%s",bo.getSubject(),bo.getAddress()));
|
|
|
} catch (UnsupportedEncodingException | MessagingException e) {
|
|
|
LoggerUtils.error(getClass(),"邮件发送错误");
|
|
|
}
|
|
|
@@ -220,6 +221,9 @@ public class AsyncUtils {
|
|
|
newList.add(ln.get(i));
|
|
|
if (50 == newList.size() || i == ln.size() - 1) {
|
|
|
if (newList.size() > 0) noticeMapper.insertBatch(newList);
|
|
|
+ for (Notice e : newList) {
|
|
|
+ LoggerUtils.debug(getClass(),String.format("=============发送站内信==>%s===>%s",NoticeStatus.getValueByCode(e.getNoticeType()),e.getContent()));
|
|
|
+ }
|
|
|
newList.clear();
|
|
|
try {
|
|
|
Thread.sleep(2000);
|