package com.goafanti.common.dao;

import com.goafanti.common.model.TChangeDun;
import com.goafanti.common.model.TChangeDunExample;
import com.goafanti.order.bo.TChangeDunOut;

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

public interface TChangeDunMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	long countByExample(TChangeDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int deleteByExample(TChangeDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int insert(TChangeDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int insertSelective(TChangeDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	List<TChangeDun> selectByExample(TChangeDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	TChangeDun selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int updateByExampleSelective(@Param("record") TChangeDun record, @Param("example") TChangeDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int updateByExample(@Param("record") TChangeDun record, @Param("example") TChangeDunExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int updateByPrimaryKeySelective(TChangeDun record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_change_dun
	 * @mbg.generated  Mon May 18 15:26:46 CST 2020
	 */
	int updateByPrimaryKey(TChangeDun record);

	void insertSelectiveList(@Param("list")List<TChangeDun> list);

	List<TChangeDunOut> selectByCid(Integer id);

	/**
	 * 
	 * @param tid 变更项目id
	 * @param type 处理类型
	 * @param i 
	 * @return
	 */
	int updateByTid(@Param("tid")Integer tid,@Param("cid")Integer cid,@Param("type")Integer type);


	void deleteByCtid(Integer id);
	
	/**
	 * 
	 * @param ctid  变更项目编号
	 * @param tid	项目编号
	 */
	void updateByCTid(@Param("ctid")Integer ctid, @Param("tid")Integer tid);

	

	
}