@Test public void testSelectType() throws Exception { CommodityType typeName = commodType.selectType("电脑"); Assert.assertNotNull(typeName,"查询成功!!!!"); }
@Override public CommodityType selectType(String name) { CommodityType ct = new CommodityType(); ct.setName(name); return (CommodityType) ctMapper.select(ct); }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public CommodityType selectType(String name) { CommodityType ct = new CommodityType(); ct.setName(name); return (CommodityType) ctMapper.select(ct); } }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public CommodityType selectType(String name) { CommodityType ct = new CommodityType(); ct.setName(name); return (CommodityType) ctMapper.select(ct); }  }
CommodityTypeServiceImpl implements ICommodityTypeService { @Override public CommodityType selectType(String name) { CommodityType ct = new CommodityType(); ct.setName(name); return (CommodityType) ctMapper.select(ct); }  @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 CommodityType selectType(String name) { CommodityType ct = new CommodityType(); ct.setName(name); return (CommodityType) ctMapper.select(ct); }  @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();  }