package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class DcBaseFinanceEbayItem {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.ebay_id
     *
     * @mbg.generated
     */
    private Integer ebayId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.account_entry_type
     *
     * @mbg.generated
     */
    private String accountEntryType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.gmt_date
     *
     * @mbg.generated
     */
    private LocalDateTime gmtDate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.bj_date
     *
     * @mbg.generated
     */
    private LocalDateTime bjDate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.gross_amount
     *
     * @mbg.generated
     */
    private BigDecimal grossAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.sku_amount
     *
     * @mbg.generated
     */
    private BigDecimal skuAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.sku_count
     *
     * @mbg.generated
     */
    private Integer skuCount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.sku_ratio
     *
     * @mbg.generated
     */
    private BigDecimal skuRatio;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.item_id
     *
     * @mbg.generated
     */
    private String itemId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.bailun_sku
     *
     * @mbg.generated
     */
    private String bailunSku;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.account_id
     *
     * @mbg.generated
     */
    private Integer accountId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.currency
     *
     * @mbg.generated
     */
    private String currency;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.exchange_rate
     *
     * @mbg.generated
     */
    private BigDecimal exchangeRate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.exchange_rate_usd
     *
     * @mbg.generated
     */
    private BigDecimal exchangeRateUsd;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.bj_create
     *
     * @mbg.generated
     */
    private LocalDateTime bjCreate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_ebay_item.bj_modified
     *
     * @mbg.generated
     */
    private LocalDateTime bjModified;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_ebay_item
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ebayId=").append(ebayId);
        sb.append(", accountEntryType=").append(accountEntryType);
        sb.append(", gmtDate=").append(gmtDate);
        sb.append(", bjDate=").append(bjDate);
        sb.append(", grossAmount=").append(grossAmount);
        sb.append(", skuAmount=").append(skuAmount);
        sb.append(", skuCount=").append(skuCount);
        sb.append(", skuRatio=").append(skuRatio);
        sb.append(", itemId=").append(itemId);
        sb.append(", bailunSku=").append(bailunSku);
        sb.append(", accountId=").append(accountId);
        sb.append(", currency=").append(currency);
        sb.append(", exchangeRate=").append(exchangeRate);
        sb.append(", exchangeRateUsd=").append(exchangeRateUsd);
        sb.append(", bjCreate=").append(bjCreate);
        sb.append(", bjModified=").append(bjModified);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_ebay_item
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseFinanceEbayItem other = (DcBaseFinanceEbayItem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEbayId() == null ? other.getEbayId() == null : this.getEbayId().equals(other.getEbayId()))
            && (this.getAccountEntryType() == null ? other.getAccountEntryType() == null : this.getAccountEntryType().equals(other.getAccountEntryType()))
            && (this.getGmtDate() == null ? other.getGmtDate() == null : this.getGmtDate().equals(other.getGmtDate()))
            && (this.getBjDate() == null ? other.getBjDate() == null : this.getBjDate().equals(other.getBjDate()))
            && (this.getGrossAmount() == null ? other.getGrossAmount() == null : this.getGrossAmount().equals(other.getGrossAmount()))
            && (this.getSkuAmount() == null ? other.getSkuAmount() == null : this.getSkuAmount().equals(other.getSkuAmount()))
            && (this.getSkuCount() == null ? other.getSkuCount() == null : this.getSkuCount().equals(other.getSkuCount()))
            && (this.getSkuRatio() == null ? other.getSkuRatio() == null : this.getSkuRatio().equals(other.getSkuRatio()))
            && (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
            && (this.getCurrency() == null ? other.getCurrency() == null : this.getCurrency().equals(other.getCurrency()))
            && (this.getExchangeRate() == null ? other.getExchangeRate() == null : this.getExchangeRate().equals(other.getExchangeRate()))
            && (this.getExchangeRateUsd() == null ? other.getExchangeRateUsd() == null : this.getExchangeRateUsd().equals(other.getExchangeRateUsd()))
            && (this.getBjCreate() == null ? other.getBjCreate() == null : this.getBjCreate().equals(other.getBjCreate()))
            && (this.getBjModified() == null ? other.getBjModified() == null : this.getBjModified().equals(other.getBjModified()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_ebay_item
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEbayId() == null) ? 0 : getEbayId().hashCode());
        result = prime * result + ((getAccountEntryType() == null) ? 0 : getAccountEntryType().hashCode());
        result = prime * result + ((getGmtDate() == null) ? 0 : getGmtDate().hashCode());
        result = prime * result + ((getBjDate() == null) ? 0 : getBjDate().hashCode());
        result = prime * result + ((getGrossAmount() == null) ? 0 : getGrossAmount().hashCode());
        result = prime * result + ((getSkuAmount() == null) ? 0 : getSkuAmount().hashCode());
        result = prime * result + ((getSkuCount() == null) ? 0 : getSkuCount().hashCode());
        result = prime * result + ((getSkuRatio() == null) ? 0 : getSkuRatio().hashCode());
        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
        result = prime * result + ((getCurrency() == null) ? 0 : getCurrency().hashCode());
        result = prime * result + ((getExchangeRate() == null) ? 0 : getExchangeRate().hashCode());
        result = prime * result + ((getExchangeRateUsd() == null) ? 0 : getExchangeRateUsd().hashCode());
        result = prime * result + ((getBjCreate() == null) ? 0 : getBjCreate().hashCode());
        result = prime * result + ((getBjModified() == null) ? 0 : getBjModified().hashCode());
        return result;
    }
}