package com.goafanti.common.dao;

import com.goafanti.common.model.ProjectInterest;
import com.goafanti.common.model.ProjectInterestExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProjectInterestMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    long countByExample(ProjectInterestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int deleteByExample(ProjectInterestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int insert(ProjectInterest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int insertSelective(ProjectInterest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    List<ProjectInterest> selectByExample(ProjectInterestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    ProjectInterest selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int updateByExampleSelective(@Param("record") ProjectInterest record, @Param("example") ProjectInterestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int updateByExample(@Param("record") ProjectInterest record, @Param("example") ProjectInterestExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int updateByPrimaryKeySelective(ProjectInterest record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table project_interest
     *
     * @mbg.generated Sat Dec 23 16:12:24 CST 2017
     */
    int updateByPrimaryKey(ProjectInterest record);

	int  countInterest(String id);

	int checkUidAndDid(@Param("projectId")String projectId,@Param("id") String id);

	int deleteInterest(@Param("uid")String uid, @Param("objectId")String objectId);
}