package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderOutsource;
import com.goafanti.common.model.TOrderOutsourceExample;
import com.goafanti.order.bo.OrderOutsourceDtails;
import com.goafanti.organization.bo.outProjectBo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface TOrderOutsourceMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	long countByExample(TOrderOutsourceExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int deleteByExample(TOrderOutsourceExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int insert(TOrderOutsource record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int insertSelective(TOrderOutsource record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	List<TOrderOutsource> selectByExample(TOrderOutsourceExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	TOrderOutsource selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int updateByExampleSelective(@Param("record") TOrderOutsource record,
			@Param("example") TOrderOutsourceExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int updateByExample(@Param("record") TOrderOutsource record, @Param("example") TOrderOutsourceExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int updateByPrimaryKeySelective(TOrderOutsource record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
	 */
	int updateByPrimaryKey(TOrderOutsource record);

	OrderOutsourceDtails selectByOrderNo( @Param("orderNo") String orderNo,@Param("tid")String tid);

	outProjectBo selectByTid(Integer tid);

	void updateByidNull(Integer id);
}