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