@Override public ProductType searchByPrimaryKey(ProductType productType) { return productTypeMapper.selectByPrimaryKey(productType.getId()); }
@Override public List<ProductType> searchByParameters(Page page, ProductType productType) { page.setParameters(productType); List<ProductType> returnList = productTypeMapper.selectByParameters(page); return returnList; }
@Override public int forbidden(ProductType productType) { return productTypeMapper.forbiddenByPrimaryKey(productType.getId()); }
@Override public int delete(ProductType productType) { return productTypeMapper.deleteByPrimaryKey(productType.getId()); }
@Override public int update(ProductType productType) { return productTypeMapper.updateByPrimaryKeySelective(productType); }
@Override public int add(ProductType productType) { return productTypeMapper.insertSelective(productType); }