package com.goafanti.common.dao;

import com.goafanti.common.model.JtMessageConsumer;
import com.goafanti.common.model.JtMessageConsumerExample;
import com.goafanti.message.bo.AppMessageBo;

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

public interface JtMessageConsumerMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int countByExample(JtMessageConsumerExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int deleteByExample(JtMessageConsumerExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int insert(JtMessageConsumer record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int insertSelective(JtMessageConsumer record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	List<JtMessageConsumer> selectByExample(JtMessageConsumerExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	JtMessageConsumer selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int updateByExampleSelective(@Param("record") JtMessageConsumer record,
			@Param("example") JtMessageConsumerExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int updateByExample(@Param("record") JtMessageConsumer record,
			@Param("example") JtMessageConsumerExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int updateByPrimaryKeySelective(JtMessageConsumer record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_message_consumer
	 * @mbggenerated  Wed Aug 29 09:46:33 CST 2018
	 */
	int updateByPrimaryKey(JtMessageConsumer record);

	AppMessageBo selectById(String id);
	
	int addBatch(List<JtMessageConsumer> list);

	JtMessageConsumer getMessageConsumer(@Param("messageId")String messageId, @Param("userId")String userId);
}
