package com.bailuntec.mapper;

import com.bailuntec.domain.entity.DcBasePurchaseDetails;
import com.bailuntec.domain.example.DcBasePurchaseDetailsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    long getCount();

    List<String> selectPageByGroup(@Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    int updateByBuyNo(@Param("isaims") int isaims, @Param("purchaseId") String purchaseId);

}
