package com.goafanti.common.dao;

import com.goafanti.common.model.TArrearsDun;
import com.goafanti.common.model.TArrearsDunExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TArrearsDunMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	long countByExample(TArrearsDunExample example);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int deleteByExample(TArrearsDunExample example);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int insert(TArrearsDun record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int insertSelective(TArrearsDun record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	List<TArrearsDun> selectByExample(TArrearsDunExample example);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	TArrearsDun selectByPrimaryKey(Integer id);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int updateByExampleSelective(@Param("record") TArrearsDun record, @Param("example") TArrearsDunExample example);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int updateByExample(@Param("record") TArrearsDun record, @Param("example") TArrearsDunExample example);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int updateByPrimaryKeySelective(TArrearsDun record);


	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_arrears_dun
	 * @mbg.generated  Wed Apr 15 15:52:48 CST 2020
	 */
	int updateByPrimaryKey(TArrearsDun record);


	int checkOrderNo(@Param("orderNo")String orderNo, @Param("status")Integer status);


	List<TArrearsDun> selectStatusAll(Integer Status);

	Integer selectByStatus(@Param("orderNo")String orderNo,  @Param("status")Integer status);

	List<TArrearsDun> selectStatusAndAmount(int i);

}