package com.bailuntec.mapper;

import com.bailuntec.domain.dto.SalesDetailItem;
import com.bailuntec.domain.entity.DcBaseWeekCoefficient;
import com.bailuntec.domain.example.DcBaseWeekCoefficientExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    List<DcBaseWeekCoefficient> selectByDays(@Param("salesDetailItemList") List<SalesDetailItem> salesDetailItemList,
                                             @Param("bailunSku") String bailunSku,
                                             @Param("warehouseCode") String warehouseCode);
}
