From 36a872f9bc5f7194b60de5339fc46e001344efa3 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Fri, 15 Apr 2022 09:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B4=94=E5=AE=9D=E6=88=90-=E6=97=A5=E7=A8=8B?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=8F=90=E9=86=92=E9=82=AE=E4=BB=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../systemoa/service/mail/IMailService.java | 14 ++++++++ .../service/mail/impl/MailServiceImpl.java | 33 +++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/src/main/java/cn/com/tenlion/systemoa/service/mail/IMailService.java b/src/main/java/cn/com/tenlion/systemoa/service/mail/IMailService.java index 4a924bd..76e253a 100644 --- a/src/main/java/cn/com/tenlion/systemoa/service/mail/IMailService.java +++ b/src/main/java/cn/com/tenlion/systemoa/service/mail/IMailService.java @@ -50,4 +50,18 @@ public interface IMailService { void deleteDelMail(String ids); void getRecoverDelMail(String ids); + + /** + * 崔宝成-日程通知提醒邮件接口 + * @param sendUserId 发件人Id + * @param recipientIds 收件人Ids,逗号分割 + * @param recipientNames 收件人姓名,例:admin[超级管理员] + * @param title 邮件标题 + * @param content 邮件内容 + */ + void cbcSendMail(String sendUserId, + String recipientIds, + String recipientNames, + String title, + String content); } diff --git a/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java b/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java index a2682ce..cd5b2fe 100644 --- a/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java +++ b/src/main/java/cn/com/tenlion/systemoa/service/mail/impl/MailServiceImpl.java @@ -326,4 +326,37 @@ public class MailServiceImpl extends DefaultBaseService implements IMailService } } } + + + /** + * 崔宝成-日程通知提醒邮件接口 + * @param sendUserId 发件人Id + * @param recipientIds 收件人Ids,逗号分割 + * @param recipientNames 收件人姓名,例:admin[超级管理员] + * @param title 邮件标题 + * @param content 邮件内容 + */ + @Override + public void cbcSendMail(String sendUserId, String recipientIds, String recipientNames, String title, String content) { + String uuid = UUIDUtil.getUUID(); + MailSendVO vo = new MailSendVO(); + Map saveParam = HashMapUtil.beanToMap(vo); + saveParam.put("mailId", uuid); + // 发件人 + saveParam.put("creator", sendUserId); + saveParam.put("modifier", sendUserId); + String createTime = DateUtil.getTime(); + saveParam.put("gmtCreate", createTime); + saveParam.put("gmtModified", createTime); + // 收件人 + saveParam.put("recipientIds", recipientIds); + saveParam.put("recipientNames", recipientNames); + // 邮件内容 + saveParam.put("title", title); + saveParam.put("contentRich", content); + saveParam.put("content", content); + mailDao.saveSendMail(saveParam); + saveParam.put("mailIdLink", uuid); + mailDao.saveInboxMail(saveParam); + } }