@Test public void testAddImage() throws Exception { Images i = new Images(); i.setImgGenre(1); i.setImgUrl("http: i.setDepict("高中奖率"); i.setState(1); boolean b = image.addImage(i); Assert.assertTrue(b); }
@Override public boolean addImage(Images img) { int insert = imagesMapper.insert(img); if (insert > 0) { return true; } return false; }
ImagesServiceImpl implements ImagesService { @Override public boolean addImage(Images img) { int insert = imagesMapper.insert(img); if (insert > 0) { return true; } return false; } }
ImagesServiceImpl implements ImagesService { @Override public boolean addImage(Images img) { int insert = imagesMapper.insert(img); if (insert > 0) { return true; } return false; }  }
ImagesServiceImpl implements ImagesService { @Override public boolean addImage(Images img) { int insert = imagesMapper.insert(img); if (insert > 0) { return true; } return false; }  @Override boolean addImage(Images img); @Override boolean deleteImage(Long id); @Override List<Map<String, Object>> selectIcon(); @Override List<Map<String, Object>> selectAdvert(); @Override boolean update(Images img); @Override List<Map<String, Object>> selectEvent(); @Override List<String> selectWelcomeImg(); @Override List<String> selectnavigeteImg(); }
ImagesServiceImpl implements ImagesService { @Override public boolean addImage(Images img) { int insert = imagesMapper.insert(img); if (insert > 0) { return true; } return false; }  @Override boolean addImage(Images img); @Override boolean deleteImage(Long id); @Override List<Map<String, Object>> selectIcon(); @Override List<Map<String, Object>> selectAdvert(); @Override boolean update(Images img); @Override List<Map<String, Object>> selectEvent(); @Override List<String> selectWelcomeImg(); @Override List<String> selectnavigeteImg();  }