package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderPayment;
import com.goafanti.common.model.TOrderPaymentExample;
import com.goafanti.organization.bo.outOrderPayment;

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

public interface TOrderPaymentMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	long countByExample(TOrderPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int deleteByExample(TOrderPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int insert(TOrderPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int insertSelective(TOrderPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	List<TOrderPayment> selectByExample(TOrderPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	TOrderPayment selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int updateByExampleSelective(@Param("record") TOrderPayment record, @Param("example") TOrderPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int updateByExample(@Param("record") TOrderPayment record, @Param("example") TOrderPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int updateByPrimaryKeySelective(TOrderPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_payment
	 * @mbg.generated  Tue Jul 07 11:46:04 CST 2020
	 */
	int updateByPrimaryKey(TOrderPayment record);

	outOrderPayment selectByidGetDetails(@Param("id")Integer id);

	int insertSelectiveGetId(TOrderPayment p);

	List<outOrderPayment> selectByTid(Integer id);

	List<outOrderPayment> selectList(@Param("tpcId")Integer tpcId, @Param("nodeId")Integer nodeId, @Param("chooseType")Integer chooseType);

	void updateByids(List<Integer> list);
}