package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcBaseCostFurnishing;
import com.bailuntec.domain.example.DcBaseCostFurnishingExample;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Param;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    BigDecimal selectSkuCostFirst(@Param("skuCode") String skuCode, @Param("createTime") LocalDateTime createTime);

    BigDecimal selectSkuCostProduct(@Param("skuCode") String skuCode, @Param("createTime") LocalDateTime createTime);
}