SmsContentLogDAO extends BaseIbatisDAO { @SuppressWarnings({"rawtypes" }) public List query(final Map<String, Object> parameters) { return super.queryForList("SMS_CONTENT_LOG.query", parameters); }  SmsContentLog save(final SmsContentLog log); void saveBatch(final Map<String, Object> parameters); Object querySmsContentLogByPk(final Long id); @SuppressWarnings({"rawtypes" }) List query(final Map<String, Object> parameters); @SuppressWarnings({ "rawtypes", "unchecked" }) Page pagedQuery(final Map parameterObject, final int currentPage, final int limit); void increaseNumbers(final Serializable id); void updateReport(final Long serialId, final Integer reportStatus, final Date date, final String memo); void updateReport(final String beforeMemo, final Integer reportStatus, final Date date, final String memo); @SuppressWarnings("unchecked") List<SmsLogStat> queryStat(final Map<String, Object> parameters); long queryMMSStat(final Map<String, Object> parameters); void moveSmsContentLogToHis(final Map<String, Object> parameters); long count(final Map<String, Object> parameters); @SuppressWarnings("unchecked") List<SmsContentLog> getListByParams(Map<String, Object> params); Long getListCountByParams(Map<String, Object> params); int updateSmsLog(SmsContentLog smsContentLog); @SuppressWarnings("unchecked") List<SmsContentLog> getSmsLogListByParams(Map<String, Object> paramMap); @SuppressWarnings("unchecked") List<SmsContentLog> getResendSmsLogList();  }
@Test public void testQuery() throws Exception { Map<String,Object> parameters = new HashMap<String,Object>(); smsContentLogDAO.query(parameters); parameters.put("status", "9"); smsContentLogDAO.query(parameters); parameters.put("id", "12"); smsContentLogDAO.query(parameters); parameters.put("mobile", "13917677725"); smsContentLogDAO.query(parameters); parameters.put("startDate","2010-09-12"); smsContentLogDAO.query(parameters); parameters.put("endDate", "2010-12-12"); smsContentLogDAO.query(parameters); parameters.clear(); parameters.put("condition", "1=1"); smsContentLogDAO.query(parameters); parameters.put("startIndex", "0"); parameters.put("endIndex", "10"); smsContentLogDAO.query(parameters); parameters.clear(); parameters.put("startIndex", "0"); parameters.put("endIndex", "3"); Assert.assertEquals(3, smsContentLogDAO.query(parameters).size()); }