package com.goafanti.common.dao;

import com.goafanti.common.model.JtVoucher;
import com.goafanti.common.model.JtVoucherExample;
import com.goafanti.voucher.bo.JtVoucherListBo;

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

public interface JtVoucherMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	long countByExample(JtVoucherExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int deleteByExample(JtVoucherExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int insert(JtVoucher record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int insertSelective(JtVoucher record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	List<JtVoucher> selectByExample(JtVoucherExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	JtVoucher selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int updateByExampleSelective(@Param("record") JtVoucher record, @Param("example") JtVoucherExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int updateByExample(@Param("record") JtVoucher record, @Param("example") JtVoucherExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int updateByPrimaryKeySelective(JtVoucher record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_voucher
	 * @mbg.generated  Tue Oct 16 15:59:34 CST 2018
	 */
	int updateByPrimaryKey(JtVoucher record);

	List<String> getSourceVoucher(Integer source);

	List<JtVoucherListBo> selectVoucherByClassify(@Param("name")String name, @Param("isHot")Integer isHot,@Param("size")Integer size);

	JtVoucherListBo selectByName(@Param("name")String name, @Param("size")Integer size);
}