package com.goafanti.common.dao;

import com.goafanti.common.bo.paymentNodeEmailBo;
import com.goafanti.common.model.PaymentNode;
import com.goafanti.common.model.PaymentNodeExample;
import com.goafanti.organization.bo.OutPaymentNode;

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

public interface PaymentNodeMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	long countByExample(PaymentNodeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int deleteByExample(PaymentNodeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int insert(PaymentNode record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int insertSelective(PaymentNode record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	List<PaymentNode> selectByExample(PaymentNodeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	PaymentNode selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int updateByExampleSelective(@Param("record") PaymentNode record, @Param("example") PaymentNodeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int updateByExample(@Param("record") PaymentNode record, @Param("example") PaymentNodeExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int updateByPrimaryKeySelective(PaymentNode record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table payment_node
	 * @mbg.generated  Tue Jul 07 13:58:53 CST 2020
	 */
	int updateByPrimaryKey(PaymentNode record);

	List<OutPaymentNode> selectByTid(@Param("tid")Integer tid,@Param("status")Integer status);

	List<OutPaymentNode> selectByStatus(Integer status);

	paymentNodeEmailBo selectBytidGetEmail(Integer tid);

	List<OutPaymentNode> selectByTidAndCid(@Param("tid")Integer tid, @Param("cid")Integer cid);
}