package com.goafanti.common.dao;

import com.goafanti.common.model.TemporaryReceivables;
import com.goafanti.common.model.TemporaryReceivablesExample;
import com.goafanti.order.bo.TemporaryReceivablesBo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TemporaryReceivablesMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	long countByExample(TemporaryReceivablesExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int deleteByExample(TemporaryReceivablesExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int insert(TemporaryReceivables record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int insertSelective(TemporaryReceivables record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	List<TemporaryReceivables> selectByExample(TemporaryReceivablesExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	TemporaryReceivables selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int updateByExampleSelective(@Param("record") TemporaryReceivables record,
			@Param("example") TemporaryReceivablesExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int updateByExample(@Param("record") TemporaryReceivables record,
			@Param("example") TemporaryReceivablesExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int updateByPrimaryKeySelective(TemporaryReceivables record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table temporary_receivables
	 * @mbg.generated  Mon Oct 14 11:33:48 CST 2019
	 */
	int updateByPrimaryKey(TemporaryReceivables record);

	int deleteByids(List<?> ids);

	int deleteByaid(String aid);

	List<TemporaryReceivables> selectByaid(String aid);

	void deleteNormalByaid(String aid);



	void insertBatch(List<TemporaryReceivablesBo> list);

	void updateRepeatOrderNo(String aid);

	String  getCountlistReceivablesAmount(Map<String, Object> parameter);

	String getCountlistReceivablesTotalAmount(Map<String, Object> parameter);

	int selectReceivablesNumberRepeats(TemporaryReceivables tr);

}