package com.goafanti.common.dao;

import com.goafanti.common.model.NewsPublish;
import com.goafanti.common.model.NewsPublishExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NewsPublishMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_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 news_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int insert(NewsPublish record);

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

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

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

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table news_publish
	 * @mbg.generated  Thu Jun 28 10:40:11 CST 2018
	 */
	int updateByPrimaryKey(NewsPublish record);
	
	int deleteByNewsId(long id);
	
	List<NewsPublish>selectByNewsId(Long id);
}