Package com.dianping.cat.home.dal.alarm

Examples of com.dianping.cat.home.dal.alarm.MailRecord


    }
  }

  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(2);
    entity.setReceivers(emails.toString());
    if (result) {
      entity.setStatus(0);
    } else {
      entity.setStatus(1);
    }
    m_mailRecordDao.insert(entity);
  }
View Full Code Here


  public void queryAlarmRecordDetail(Payload payload, Model model) {
    int id = payload.getAlarmRecordId();

    try {
      MailRecord record = m_mailRecordDao.findByPK(id, MailRecordEntity.READSET_FULL);
      model.setMailRecord(record);
    } catch (DalException e) {
      Cat.logError(e);
    }
  }
View Full Code Here

  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);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.dal.alarm.MailRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.