@Test public void testUpdate() throws Exception { Images i = new Images(); i.setId(1l); i.setImgGenre(2); boolean b = image.update(i); Assert.assertTrue(b); }
@Override public boolean update(Images img) { int i = imagesMapper.updateByPrimaryKeySelective(img); if (i > 0) { return true; } return false; }
ImagesServiceImpl implements ImagesService { @Override public boolean update(Images img) { int i = imagesMapper.updateByPrimaryKeySelective(img); if (i > 0) { return true; } return false; } }
ImagesServiceImpl implements ImagesService { @Override public boolean update(Images img) { int i = imagesMapper.updateByPrimaryKeySelective(img); if (i > 0) { return true; } return false; }  }
ImagesServiceImpl implements ImagesService { @Override public boolean update(Images img) { int i = imagesMapper.updateByPrimaryKeySelective(img); if (i > 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 update(Images img) { int i = imagesMapper.updateByPrimaryKeySelective(img); if (i > 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();  }