package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcDailySales;
import com.bailuntec.domain.example.DcDailySalesExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    DcDailySales selectOneByExample(DcDailySalesExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     */
    DcDailySales selectByPrimaryKey(Integer id);

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int upsert(DcDailySales record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    int upsertSelective(DcDailySales record);


    //todo 慢查询优化
    void calculateSales();
}
