private SimpleDateFormat m_sdf = new SimpleDateFormat("yyyy-MM-dd");
private void insertMailLog(int reportId, String content, String title, boolean result, List<String> emails)
throws DalException {
MailRecord entity = m_mailRecordDao.createLocal();
entity.setTitle(title);
entity.setContent(content);
entity.setRuleId(reportId);
entity.setType(1);
entity.setReceivers(emails.toString());
if (result) {
entity.setStatus(0);
} else {
entity.setStatus(1);
}
m_mailRecordDao.insert(entity);
}