package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderRefund;
import com.goafanti.common.model.TOrderRefundExample;
import com.goafanti.common.model.TOrderRefundWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TOrderRefundMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	long countByExample(TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int deleteByExample(TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int insert(TOrderRefundWithBLOBs record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int insertSelective(TOrderRefundWithBLOBs record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	List<TOrderRefundWithBLOBs> selectByExampleWithBLOBs(TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	List<TOrderRefund> selectByExample(TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	TOrderRefundWithBLOBs selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByExampleSelective(@Param("record") TOrderRefundWithBLOBs record,
			@Param("example") TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByExampleWithBLOBs(@Param("record") TOrderRefundWithBLOBs record,
			@Param("example") TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByExample(@Param("record") TOrderRefund record, @Param("example") TOrderRefundExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByPrimaryKeySelective(TOrderRefundWithBLOBs record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByPrimaryKeyWithBLOBs(TOrderRefundWithBLOBs record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_refund
	 * @mbg.generated  Tue Nov 20 15:20:39 CST 2018
	 */
	int updateByPrimaryKey(TOrderRefund record);
	
	int updateRefundById(TOrderRefund record);

	int checkOrderNo(String orderNo);
}