package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcAutoTurnover;
import com.bailuntec.domain.entity.DcAutoTurnoverWithBLOBs;
import com.bailuntec.domain.example.DcAutoTurnoverExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_turnover
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    DcAutoTurnoverWithBLOBs selectOneByExampleWithBLOBs(DcAutoTurnoverExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_turnover
     *
     * @mbg.generated
     */
    List<DcAutoTurnoverWithBLOBs> selectByExampleWithBLOBs(DcAutoTurnoverExample example);

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_turnover
     *
     * @mbg.generated
     */
    int updateByExampleWithBLOBs(@Param("record") DcAutoTurnoverWithBLOBs record, @Param("example") DcAutoTurnoverExample example);

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_turnover
     *
     * @mbg.generated
     */
    int updateByPrimaryKeyWithBLOBs(DcAutoTurnoverWithBLOBs record);

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

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

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

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

    DcAutoTurnoverWithBLOBs selectByUnionKey(@Param("bailunSku") String bailunSku,
                                             @Param("warehouseCode") String warehouseCode);
}
