package com.bailuntec.mapper;

import com.bailuntec.domain.dto.DcBaseFinanceEbayItemDto;
import com.bailuntec.domain.entity.DcBaseFinanceEbay;
import com.bailuntec.domain.entity.DcBaseFinanceEbayItem;
import com.bailuntec.domain.entity.JobPointLog;
import com.bailuntec.domain.example.DcBaseFinanceEbayExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

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

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

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

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

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

    int insertTestSelective(DcBaseFinanceEbay record);

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

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

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

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

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

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

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

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

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

    // CalculateEbayItemJob  start
    List<DcBaseFinanceEbayItemDto> selectEbayList(JobPointLog jobPointLog);

    List<DcBaseFinanceEbayItemDto> selectEbayList1(JobPointLog jobPointLog);

    BigDecimal selectSkuPrice(@Param("skuCode") String skuCode);
    // CalculateEbayItemJob  end

    // EbayItemSyncJob  start
    long countByGroup(JobPointLog jobPointLog);

    List<DcBaseFinanceEbayItemDto> selectEbay(JobPointLog jobPointLog);

    List<String> selectEbayItem(JobPointLog jobPointLog);
    //  EbayItemSyncJob  end



}