package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcAutoForecastFluctuation;
import com.bailuntec.domain.example.DcAutoForecastFluctuationExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Integer yesterdayStock(@Param("bailun_sku")String bailun_sku,@Param("warehouse_code") String warehouse_code);
}