SeoLinksServiceImpl implements SeoLinksService { @Override public void batchDeleteByParam(Map<String, Object> map) { List<SeoLinks> seoLinksList=seoLinksDao.querySeoLinksByParamForReport(map); if(!seoLinksList.isEmpty()){ seoLinksDao.batchDeleteSeoLinks(seoLinksList); } }  @Override void insert(SeoLinks seoLinks); @Override void update(SeoLinks seoLinks); @Override void deleteBySeoLinksId(long seoLinksId); @Override void batchInsert(List<SeoLinks> seoLinksList); @Override void batchDeleteByParam(Map<String, Object> map); @Override void batchDeleteSeoLinks(List<SeoLinks> seoLinksList); @Override List<SeoLinks> batchQuerySeoLinksByParam(Map<String, Object> map); @Override Long getCountSeoLinksByParam(Map<String, Object> map); @Override SeoLinks querySeoBySeoID(long id); @Override List<SeoLinks> querySeoLinksByParam(Map<String, Object> map); void setSeoLinksDao(SeoLinksDao seoLinksDao);  }
@Test public void testBatchDeleteByParam(){ Map<String, Object> map=new HashMap<String, Object>(); map.put("placeName", "宣城"); List<SeoLinks> list=seoLinksService.batchQuerySeoLinksByParam(map); for(SeoLinks s:list){ System.out.println(s.getPlaceName()); } if(null!=list)seoLinksService.batchDeleteByParam(map); }