/**
   * * 根据部门 和主题查模板 easyui 分页 @Description: TODO
   *
   * @param department
   * @param theme
   * @return
   * @return List<SmsTemplate>
   * @throws
   */
  public Map<String, Object> findSmsTemplatePageList(
      String department, String theme, DataGridModel dataGridModel) {
    Map<String, Object> result = new HashMap<String, Object>();
    List<SmsTemplate> list = smsTemplatesDao.query(department, theme, dataGridModel);
    int count = smsTemplatesDao.queryCount(department, theme);

    result.put("total", count);
    result.put("rows", list);
    return result;
  }
 /**
  * 根据部门 和主题查模板
  *
  * @param department
  * @param theme
  * @return
  * @see com.chinadrtv.erp.smsapi.service.SmsTemplatesService#getSmsTemplateList (java.lang.String,
  *     java.lang.String)
  */
 public List<SmsTemplate> getSmsTemplateList(String department, String theme) {
   // TODO Auto-generated method stub
   return smsTemplatesDao.getByDepartment(department, theme);
 }