@Test public void testHideType() throws Exception { boolean b = commodType.hideType(0); Assert.assertTrue(b); }
@Override public boolean hideType(Integer id) { CommodityType c = new CommodityType(); c.setId(id); c.setState(1); int i = ctMapper.updateByPrimaryKeySelective(c); if (i > 0) { return true; } return false; }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean hideType(Integer id) { CommodityType c = new CommodityType(); c.setId(id); c.setState(1); int i = ctMapper.updateByPrimaryKeySelective(c); if (i > 0) { return true; } return false; } }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean hideType(Integer id) { CommodityType c = new CommodityType(); c.setId(id); c.setState(1); int i = ctMapper.updateByPrimaryKeySelective(c); if (i > 0) { return true; } return false; }  }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean hideType(Integer id) { CommodityType c = new CommodityType(); c.setId(id); c.setState(1); int i = ctMapper.updateByPrimaryKeySelective(c); if (i > 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 hideType(Integer id) { CommodityType c = new CommodityType(); c.setId(id); c.setState(1); int i = ctMapper.updateByPrimaryKeySelective(c); if (i > 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();  }