package com.goafanti.common.dao;

import com.goafanti.common.model.OrganizationAnnualReport;
import com.goafanti.common.model.OrganizationAnnualReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrganizationAnnualReportMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	long countByExample(OrganizationAnnualReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int deleteByExample(OrganizationAnnualReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int insert(OrganizationAnnualReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int insertSelective(OrganizationAnnualReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	List<OrganizationAnnualReport> selectByExample(OrganizationAnnualReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	OrganizationAnnualReport selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int updateByExampleSelective(@Param("record") OrganizationAnnualReport record,
			@Param("example") OrganizationAnnualReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int updateByExample(@Param("record") OrganizationAnnualReport record,
			@Param("example") OrganizationAnnualReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int updateByPrimaryKeySelective(OrganizationAnnualReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table organization_annual_report
	 * @mbg.generated  Fri Jul 27 15:10:52 CST 2018
	 */
	int updateByPrimaryKey(OrganizationAnnualReport record);

	int checkYear(@Param("uid")String uid, @Param("year")Integer year);

    int checkAnnual(@Param("id")String id, @Param("uid")String uid, @Param("year")Integer year);

	int selectOrgAnnualCount(String uid);

	int selectOrgYearProjectCount(String uid);

	

	
}