崔宝成-日程通知提醒邮件接口

This commit is contained in:
wans 2022-04-15 09:50:43 +08:00
parent 26aa87d8a6
commit 36a872f9bc
2 changed files with 47 additions and 0 deletions

View File

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

View File

@ -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<String, Object> 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);
}
}