package com.goafanti.common.dao;

import com.goafanti.common.model.FinancialPayment;
import com.goafanti.common.model.FinancialPaymentExample;
import com.goafanti.organization.bo.InuptFinancialPayment;
import com.goafanti.organization.bo.NoticeInformationBo;
import com.goafanti.organization.bo.outFinancialPayment;

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

public interface FinancialPaymentMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	long countByExample(FinancialPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int deleteByExample(FinancialPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int insert(FinancialPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int insertSelective(FinancialPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	List<FinancialPayment> selectByExample(FinancialPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	FinancialPayment selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int updateByExampleSelective(@Param("record") FinancialPayment record,
			@Param("example") FinancialPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int updateByExample(@Param("record") FinancialPayment record, @Param("example") FinancialPaymentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int updateByPrimaryKeySelective(FinancialPayment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table financial_payment
	 * @mbg.generated  Tue Jun 16 16:45:09 CST 2020
	 */
	int updateByPrimaryKey(FinancialPayment record);

	List<outFinancialPayment> selectByPid(Integer id);


	NoticeInformationBo selectBypidGetNotice(Integer pid);

	void updateOrderCost(@Param("pid")Integer pid, @Param("partyAmount")BigDecimal partyAmount);

	int insertSelectiveGetId(InuptFinancialPayment f);
	
}