package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcMidCostFirst;
import com.bailuntec.domain.example.DcMidCostFirstExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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