AnnwinnerslistDAO extends BaseIbatisDAO { public void save(final Annwinnerslist annwinnerlist) { super.insert("ANN_WINNERSLIST.insert", annwinnerlist); }  void save(final Annwinnerslist annwinnerlist); List<Annwinnerslist> queryAnnwinnerslist(Map map); Annliping queryAnnliping(Long lpDengjiang); void updateWinnerslist(Annwinnerslist annlist); UserTopic queryUserTopicById(Long userId); List<Annhongbao> queryAnnhongbaoByParam(Map<String, Object> map); int updateAnnhongbao(Annhongbao ann); int minUpdateAnnHongbao(Map map); int minUpdateAnnliping(Map param); Annliping queryAnnlipingByParam(Map<String, Object> param); int updateAnnliping(Map<String,Object> param);  }
@Test public void testSave() throws Exception { Annwinnerslist annwinnerlist=new Annwinnerslist(); annwinnerlist.setFlag(1L); annwinnerlist.setAddress("ok"); annwinnerlist.setHuojiangTime(DateUtil.getTodayDate()); annwinnerlist.setCreateDate(null); annwinnerslistDAO.save(annwinnerlist); }