package com.goafanti.common.dao;

import com.goafanti.common.model.OrganizationContactBook;
import com.goafanti.common.model.OrganizationContactBookExample;

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

public interface OrganizationContactBookMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	long countByExample(OrganizationContactBookExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int deleteByExample(OrganizationContactBookExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int insert(OrganizationContactBook record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int insertSelective(OrganizationContactBook record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	List<OrganizationContactBook> selectByExample(OrganizationContactBookExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	OrganizationContactBook selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int updateByExampleSelective(@Param("record") OrganizationContactBook record,
			@Param("example") OrganizationContactBookExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int updateByExample(@Param("record") OrganizationContactBook record,
			@Param("example") OrganizationContactBookExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int updateByPrimaryKeySelective(OrganizationContactBook record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_contact_book
	 * @mbg.generated  Fri Jun 05 08:58:43 CST 2020
	 */
	int updateByPrimaryKey(OrganizationContactBook record);

	int checkContacts(@Param("uid")String uid,@Param("mobile")String mobile,@Param("aid")String aid);

	int updateMainContact(@Param("ocbId")String ocbId);
	
	int updateSubContact(@Param("uid")String uid);

	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId);

	void updateAdmin(@Param("uid")String uid, @Param("aid")String aid);
}