package com.goafanti.common.dao;

import com.goafanti.common.model.OutsourceOrganization;
import com.goafanti.common.model.OutsourceOrganizationExample;
import com.goafanti.order.bo.OutsourceOrganizationBo;

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

public interface OutsourceOrganizationMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	long countByExample(OutsourceOrganizationExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int deleteByExample(OutsourceOrganizationExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int insert(OutsourceOrganization record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int insertSelective(OutsourceOrganization record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	List<OutsourceOrganization> selectByExample(OutsourceOrganizationExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	OutsourceOrganization selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int updateByExampleSelective(@Param("record") OutsourceOrganization record,
			@Param("example") OutsourceOrganizationExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int updateByExample(@Param("record") OutsourceOrganization record,
			@Param("example") OutsourceOrganizationExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int updateByPrimaryKeySelective(OutsourceOrganization record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table outsource_organization
	 * @mbg.generated  Fri Jun 21 10:02:00 CST 2019
	 */
	int updateByPrimaryKey(OutsourceOrganization record);

	List<OutsourceOrganizationBo> selectOutsourceOrg(@Param("orderNo")String orderNo,@Param("tid")String tid);

	List<OutsourceOrganizationBo> selectOrderOutsourceOrg(String orderNo);
}