package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_fba_fee_avg.max_fba_fee
     *
     * @mbg.generated
     */
    private BigDecimal maxFbaFee;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_fba_fee_avg.average_fba_fee
     *
     * @mbg.generated
     */
    private BigDecimal averageFbaFee;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_fba_fee_avg.min_fba_fee
     *
     * @mbg.generated
     */
    private BigDecimal minFbaFee;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_fba_fee_avg.create_time
     *
     * @mbg.generated
     */
    private LocalDateTime createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_fba_fee_avg.update_time
     *
     * @mbg.generated
     */
    private LocalDateTime updateTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_fba_fee_avg
     *
     * @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(", bailunSku=").append(bailunSku);
        sb.append(", maxFbaFee=").append(maxFbaFee);
        sb.append(", averageFbaFee=").append(averageFbaFee);
        sb.append(", minFbaFee=").append(minFbaFee);
        sb.append(", website=").append(website);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_fba_fee_avg
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcMidFbaFeeAvg other = (DcMidFbaFeeAvg) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getMaxFbaFee() == null ? other.getMaxFbaFee() == null : this.getMaxFbaFee().equals(other.getMaxFbaFee()))
            && (this.getAverageFbaFee() == null ? other.getAverageFbaFee() == null : this.getAverageFbaFee().equals(other.getAverageFbaFee()))
            && (this.getMinFbaFee() == null ? other.getMinFbaFee() == null : this.getMinFbaFee().equals(other.getMinFbaFee()))
            && (this.getWebsite() == null ? other.getWebsite() == null : this.getWebsite().equals(other.getWebsite()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_fba_fee_avg
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getMaxFbaFee() == null) ? 0 : getMaxFbaFee().hashCode());
        result = prime * result + ((getAverageFbaFee() == null) ? 0 : getAverageFbaFee().hashCode());
        result = prime * result + ((getMinFbaFee() == null) ? 0 : getMinFbaFee().hashCode());
        result = prime * result + ((getWebsite() == null) ? 0 : getWebsite().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}