package com.goafanti.common.dao;

import com.goafanti.common.model.PolicyPublish;
import com.goafanti.common.model.PolicyPublishExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PolicyPublishMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	long countByExample(PolicyPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int deleteByExample(PolicyPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int insert(PolicyPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int insertSelective(PolicyPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	List<PolicyPublish> selectByExample(PolicyPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	PolicyPublish selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int updateByExampleSelective(@Param("record") PolicyPublish record, @Param("example") PolicyPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int updateByExample(@Param("record") PolicyPublish record, @Param("example") PolicyPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int updateByPrimaryKeySelective(PolicyPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table policy_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int updateByPrimaryKey(PolicyPublish record);
	
	int deleteByPolicyId(Long id);

	List<String> getPagesByPolicyId(Long id);
	
	
}