package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderChange;
import com.goafanti.common.model.TOrderChangeExample;
import com.goafanti.order.bo.OrderChangeBo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TOrderChangeMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	long countByExample(TOrderChangeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int deleteByExample(TOrderChangeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int insert(TOrderChange record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int insertSelective(TOrderChange record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	List<TOrderChange> selectByExample(TOrderChangeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	TOrderChange selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int updateByExampleSelective(@Param("record") TOrderChange record, @Param("example") TOrderChangeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int updateByExample(@Param("record") TOrderChange record, @Param("example") TOrderChangeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int updateByPrimaryKeySelective(TOrderChange record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_change
	 * @mbg.generated  Fri Aug 16 09:06:39 CST 2019
	 */
	int updateByPrimaryKey(TOrderChange record);

	List<OrderChangeBo> selectOrderChange(String orderNo);

	int selectCountByStatus(@Param("changeStatus")Integer changeStatus,@Param("orderNo")String orderNo);
}