package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_ebay_sku_ratio.sku_price
     *
     * @mbg.generated
     */
    private BigDecimal skuPrice;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_ebay_sku_ratio
     *
     * @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(", itemId=").append(itemId);
        sb.append(", skuCode=").append(skuCode);
        sb.append(", skuCount=").append(skuCount);
        sb.append(", skuRatio=").append(skuRatio);
        sb.append(", skuPrice=").append(skuPrice);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_ebay_sku_ratio
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseEbaySkuRatio other = (DcBaseEbaySkuRatio) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
            && (this.getSkuCode() == null ? other.getSkuCode() == null : this.getSkuCode().equals(other.getSkuCode()))
            && (this.getSkuCount() == null ? other.getSkuCount() == null : this.getSkuCount().equals(other.getSkuCount()))
            && (this.getSkuRatio() == null ? other.getSkuRatio() == null : this.getSkuRatio().equals(other.getSkuRatio()))
            && (this.getSkuPrice() == null ? other.getSkuPrice() == null : this.getSkuPrice().equals(other.getSkuPrice()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_ebay_sku_ratio
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
        result = prime * result + ((getSkuCode() == null) ? 0 : getSkuCode().hashCode());
        result = prime * result + ((getSkuCount() == null) ? 0 : getSkuCount().hashCode());
        result = prime * result + ((getSkuRatio() == null) ? 0 : getSkuRatio().hashCode());
        result = prime * result + ((getSkuPrice() == null) ? 0 : getSkuPrice().hashCode());
        return result;
    }
}