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