package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcMidStockDate;
import com.bailuntec.domain.example.DcMidStockDateExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    int selectCount(@Param("bailunSku")String bailunSku, @Param("warehouseCode")String warehouseCode);
}