package com.goafanti.common.dao;

import com.goafanti.common.model.NewOrderDun;
import com.goafanti.common.model.NewOrderDunExample;
import com.goafanti.order.bo.OutNewOrderDunBo;

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

public interface NewOrderDunMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	long countByExample(NewOrderDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int deleteByExample(NewOrderDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int insert(NewOrderDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int insertSelective(NewOrderDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	List<NewOrderDun> selectByExample(NewOrderDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	NewOrderDun selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int updateByExampleSelective(@Param("record") NewOrderDun record, @Param("example") NewOrderDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int updateByExample(@Param("record") NewOrderDun record, @Param("example") NewOrderDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int updateByPrimaryKeySelective(NewOrderDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table new_order_dun
	 * @mbg.generated  Fri May 15 09:46:56 CST 2020
	 */
	int updateByPrimaryKey(NewOrderDun record);

	List<OutNewOrderDunBo> selectListNewOrderDun(@Param("orderNo")String orderNo,@Param("aid") String aid,@Param("status")Integer status);

	List<OutNewOrderDunBo> selectAllOrderDun();

	List<OutNewOrderDunBo> selectByTid(String id);

	void deleteByTid(Integer tid);

	void insertBatch(List<OutNewOrderDunBo> newtd2);

}