package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcMidCostFirstOrder;
import com.bailuntec.domain.example.DcMidCostFirstOrderExample;
import com.bailuntec.domain.pojo.MidCostFirst;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    int countSkuWarehouse();

    List<MidCostFirst> listSkuWarehouse(@Param("v1") int v1, @Param("v2") int v2);

}