package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcMidCostFirstConfig;
import com.bailuntec.domain.example.DcMidCostFirstConfigExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    DcMidCostFirstConfig getConfig(@Param("bailunSku") String bailunSku, @Param("warehouseCode") String warehouseCode);
}