package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcBaseSkuWarehouse;
import com.bailuntec.domain.example.DcBaseSkuWarehouseExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    void logicDeleteWarehouse(@Param("bailunSku") String bailunSku,@Param("companyId") Integer companyId);
}