package com.gyee.frame.mapper.auto;

import com.gyee.frame.model.auto.Recommenmain;
import com.gyee.frame.model.auto.RecommenmainExample;
import com.gyee.frame.model.custom.RecommenmainVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RecommenmainMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    long countByExample(RecommenmainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int deleteByExample(RecommenmainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(String rid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int insert(Recommenmain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int insertSelective(Recommenmain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    List<Recommenmain> selectByExample(RecommenmainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    Recommenmain selectByPrimaryKey(String rid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") Recommenmain record, @Param("example") RecommenmainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") Recommenmain record, @Param("example") RecommenmainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(Recommenmain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table RECOMMENMAIN
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(Recommenmain record);

    List<Recommenmain> getRecommenmainDay(@Param("ismain") String ismain,@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    List<RecommenmainVo> getRecommenmainTotal(@Param("wpId") String wpId, @Param("beginDate") String beginDate, @Param("endDate") String endDate);


}