package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderBonus;
import com.goafanti.common.model.TOrderBonusExample;
import com.goafanti.order.bo.TOrderBonusBo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface TOrderBonusMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	long countByExample(TOrderBonusExample example);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int deleteByExample(TOrderBonusExample example);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int deleteByPrimaryKey(String id);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int insert(TOrderBonus record);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int insertSelective(TOrderBonus record);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	List<TOrderBonus> selectByExample(TOrderBonusExample example);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	TOrderBonus selectByPrimaryKey(String id);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int updateByExampleSelective(@Param("record") TOrderBonus record, @Param("example") TOrderBonusExample example);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int updateByExample(@Param("record") TOrderBonus record, @Param("example") TOrderBonusExample example);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int updateByPrimaryKeySelective(TOrderBonus record);
	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_bonus
<<<<<<< HEAD
	 * @mbggenerated  Tue Nov 27 10:35:55 CST 2018
=======
	 * @mbg.generated  Tue Nov 27 11:15:28 CST 2018
>>>>>>> branch 'test' of http://git.jishutao.com/jishutao/kede-server.git
	 */
	int updateByPrimaryKey(TOrderBonus record);
	List<TOrderBonusBo> getDeptBySome(TOrderBonusBo bonusBo);
	List<TOrderBonusBo> getBonusData(TOrderBonusBo bonusBo);
	List<TOrderBonusBo> getSaleBounsList(TOrderBonusBo bonusBo);
	
	int checkByOnoAndSub(TOrderBonus bonus);
	
	int checkNoPay(TOrderBonusBo bonusBo);
}
