@Test public void testAddImage() throws Exception { CommodityImg ci = new CommodityImg(); ci.setUrl("de.com"); ci.setAddTime(System.currentTimeMillis()); ci.setState(1); boolean b = commodImg.addImage(ci); Assert.assertTrue(b); }
@Override public boolean addImage(CommodityImg commodImg) { int insert = commodityImg.insert(commodImg); if (insert > 0) { return true; } return false; }
CommodityImgServiceImlpl implements ICommodityImgService { @Override public boolean addImage(CommodityImg commodImg) { int insert = commodityImg.insert(commodImg); if (insert > 0) { return true; } return false; } }
CommodityImgServiceImlpl implements ICommodityImgService { @Override public boolean addImage(CommodityImg commodImg) { int insert = commodityImg.insert(commodImg); if (insert > 0) { return true; } return false; }  }
CommodityImgServiceImlpl implements ICommodityImgService { @Override public boolean addImage(CommodityImg commodImg) { int insert = commodityImg.insert(commodImg); if (insert > 0) { return true; } return false; }  @Override boolean addImage(CommodityImg commodImg); @Override boolean deleteImage(Long id); @Override CommodityImg selectImg(Long id); @Override List<CommodityImg> selectAll(); }
CommodityImgServiceImlpl implements ICommodityImgService { @Override public boolean addImage(CommodityImg commodImg) { int insert = commodityImg.insert(commodImg); if (insert > 0) { return true; } return false; }  @Override boolean addImage(CommodityImg commodImg); @Override boolean deleteImage(Long id); @Override CommodityImg selectImg(Long id); @Override List<CommodityImg> selectAll();  }