package com.goafanti.common.dao;

import com.goafanti.common.model.Policy;
import com.goafanti.common.model.PolicyExample;
import com.goafanti.news.bo.PolicyResult;

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

public interface PolicyMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	long countByExample(PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int deleteByExample(PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int deleteByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int insert(Policy record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int insertSelective(Policy record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	List<Policy> selectByExampleWithBLOBs(PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	List<Policy> selectByExample(PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	PolicyResult selectByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByExampleSelective(@Param("record") Policy record, @Param("example") PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByExampleWithBLOBs(@Param("record") Policy record, @Param("example") PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByExample(@Param("record") Policy record, @Param("example") PolicyExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByPrimaryKeySelective(Policy record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByPrimaryKeyWithBLOBs(Policy record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy
	 * @mbg.generated  Thu Jun 28 16:23:43 CST 2018
	 */
	int updateByPrimaryKey(Policy record);
	
	List<String>getPagesByPolicyId(Long id);

	PolicyResult selectPolicyDetail(String id);
}