package com.goafanti.common.dao;


import com.goafanti.comment.bo.CommentDetailResult;
import com.goafanti.common.model.JtCommodityComment;
import com.goafanti.common.model.JtCommodityCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface JtCommodityCommentMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	long countByExample(JtCommodityCommentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int deleteByExample(JtCommodityCommentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int insert(JtCommodityComment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int insertSelective(JtCommodityComment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	List<JtCommodityComment> selectByExample(JtCommodityCommentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	JtCommodityComment selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int updateByExampleSelective(@Param("record") JtCommodityComment record,
			@Param("example") JtCommodityCommentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int updateByExample(@Param("record") JtCommodityComment record,
			@Param("example") JtCommodityCommentExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int updateByPrimaryKeySelective(JtCommodityComment record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_commodity_comment
	 * @mbg.generated  Thu Jul 19 10:59:39 CST 2018
	 */
	int updateByPrimaryKey(JtCommodityComment record);
	
	Integer getCommentCount(Integer type,String commodityId);

	CommentDetailResult selectByProjectId(String id);
	
	String getUidByIp(String ip);
	String getMaxNameUid();
}