mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-02-28 01:14:01 +08:00
feat: 发送消息通知的任务修改
This commit is contained in:
parent
ff2596f2ac
commit
9391b4a55f
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
******************************************************************************/
|
||||
package com.skyeye.mq.job.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.skyeye.common.constans.MqConstants;
|
||||
import com.skyeye.common.util.MailUtil;
|
||||
|
@ -46,9 +47,9 @@ public class NoticeSendServiceImpl implements RocketMQListener<String> {
|
|||
List<Map<String, Object>> beans = JSONUtil.toList(email, null);
|
||||
for (int i = 0; i < beans.size(); i++) {
|
||||
Map<String, Object> bean = beans.get(i);
|
||||
if (bean != null && !bean.isEmpty()) {
|
||||
if (CollectionUtil.isNotEmpty(bean)) {
|
||||
// 邮件账号不为空,发送邮件
|
||||
new MailUtil().send(bean.get("userEmail").toString(), map.get("title").toString(), map.get("content").toString());
|
||||
new MailUtil().send(bean.get("email").toString(), map.get("title").toString(), map.get("content").toString());
|
||||
}
|
||||
}
|
||||
// 任务完成
|
||||
|
|
Loading…
Reference in a new issue