崔宝成-日程通知提醒邮件接口
This commit is contained in:
parent
26aa87d8a6
commit
36a872f9bc
@ -50,4 +50,18 @@ public interface IMailService {
|
|||||||
void deleteDelMail(String ids);
|
void deleteDelMail(String ids);
|
||||||
|
|
||||||
void getRecoverDelMail(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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user