@Test public void testUpdateType() throws Exception { CommodityType ct = new CommodityType(); ct.setId(1); ct.setName("电脑"); ct.setState(1); commodType.updateType(ct); }
@Override public boolean updateType(CommodityType commtype) { int i = ctMapper.updateByPrimaryKeySelective(commtype); if (i > 0) { return true; } return false; }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean updateType(CommodityType commtype) { int i = ctMapper.updateByPrimaryKeySelective(commtype); if (i > 0) { return true; } return false; } }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean updateType(CommodityType commtype) { int i = ctMapper.updateByPrimaryKeySelective(commtype); if (i > 0) { return true; } return false; }  }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public boolean updateType(CommodityType commtype) { int i = ctMapper.updateByPrimaryKeySelective(commtype); 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 updateType(CommodityType commtype) { int i = ctMapper.updateByPrimaryKeySelective(commtype); 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();  }