LetterUserMessageDAO extends BaseIbatisDAO { public Long countMessage(Map<String, Object> parameters) { parameters.remove("maxResult"); parameters.remove("skipResult"); return (Long)super.queryForObject("ONLINE_LETTER_USER_MESSAGE.countMessage",parameters); }  List<LetterUserMessage> batchInsertUserLetter(final List<LetterUserMessage> list); int updateUserLetter(Long id); int batchDeleteUserLetter(Map<String, Object> parameters); List<LetterUserMessage> queryMessage(Map<String, Object> parameters); Long countMessage(Map<String, Object> parameters);  }
@Test public void testCountMessage() { Map<String,Object> parameters = new HashMap<String,Object>(); parameters.put("endTime", new Date()); letterUserMessageDAO.countMessage(parameters); }