LetterTemplateDAO extends BaseIbatisDAO { public Long insertTemplate(LetterTemplate template) { return (Long)super.insert("ONLINE_LETTER_TEMPLATE.insertTemplate", template); }  Long insertTemplate(LetterTemplate template); int updateTemplate(LetterTemplate template); List<LetterTemplate> queryTemplate(Map<String, Object> parameters); Long countTemplate(Map<String, Object> parameters);  }
@Test public void testInsertTemplate() { LetterTemplate template = new LetterTemplate(); template.setTitle("测试"); template.setType(Constant.ONLINE_LETTER_TYPE.PROCLAMATION.name()); template.setBeginTime(DateUtil.getDayStart(new Date())); template.setEndTime(DateUtil.getDayEnd(new Date())); template.setUserGroupType(Constant.ONLINE_LETTER_USER_GROUP.ALL_USER.name()); template.setContent("<h3 class=\"t\"><a href=\"http: letterTemplateDAO.insertTemplate(template); }