@Test public void testAddType() throws Exception { CommodityType ct = new CommodityType(); ct.setName("手机"); ct.setState(1); boolean b = commodType.addType(ct); Assert.assertTrue(b,"保存成功！！！！"); }
@Override public boolean addType(CommodityType commtype) { int insert = ctMapper.insert(commtype); if (insert > 0) { return true; } return false; }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean addType(CommodityType commtype) { int insert = ctMapper.insert(commtype); if (insert > 0) { return true; } return false; } }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean addType(CommodityType commtype) { int insert = ctMapper.insert(commtype); if (insert > 0) { return true; } return false; }  }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean addType(CommodityType commtype) { int insert = ctMapper.insert(commtype); if (insert > 0) { return true; } return false; }  @Override boolean addType(CommodityType commtype); @Override boolean hideType(Integer id); @Override boolean updateType(CommodityType commtype); @Override CommodityType selectType(String name); @Override List<CommodityType> selectAvailable(); @Override List<CommodityType> selectAll(); }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean addType(CommodityType commtype) { int insert = ctMapper.insert(commtype); if (insert > 0) { return true; } return false; }  @Override boolean addType(CommodityType commtype); @Override boolean hideType(Integer id); @Override boolean updateType(CommodityType commtype); @Override CommodityType selectType(String name); @Override List<CommodityType> selectAvailable(); @Override List<CommodityType> selectAll();  }