package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.admin.bo.AdminVideoBo;
import com.goafanti.common.model.JtVideo;
import com.goafanti.common.model.JtVideoExample;

public interface JtVideoMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int countByExample(JtVideoExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int deleteByExample(JtVideoExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int insert(JtVideo record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int insertSelective(JtVideo record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	List<JtVideo> selectByExample(JtVideoExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	JtVideo selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int updateByExampleSelective(@Param("record") JtVideo record,
			@Param("example") JtVideoExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int updateByExample(@Param("record") JtVideo record,
			@Param("example") JtVideoExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int updateByPrimaryKeySelective(JtVideo record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_video
	 * @mbggenerated  Fri Nov 02 16:14:39 CST 2018
	 */
	int updateByPrimaryKey(JtVideo record);

	AdminVideoBo selectById(JtVideo id);
	
	int updateByUrl(JtVideo video);
	
	AdminVideoBo getIndexVideo(Integer position);
	
	int nameCheck(String name);
	
	List<JtVideo> getAllVideoExcludeId(String id);
}