package com.bailuntec.domain.entity;

import java.time.LocalDateTime;
import lombok.Data;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_fastest_storage.purchase_days
     *
     * @mbg.generated
     */
    private Integer purchaseDays;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_fastest_storage.trans_days
     *
     * @mbg.generated
     */
    private Integer transDays;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_fastest_storage.gmt_update_date
     *
     * @mbg.generated
     */
    private LocalDateTime gmtUpdateDate;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_fastest_storage
     *
     * @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(", warehouseCode=").append(warehouseCode);
        sb.append(", countryCode=").append(countryCode);
        sb.append(", purchaseDays=").append(purchaseDays);
        sb.append(", transDays=").append(transDays);
        sb.append(", gmtUpdateDate=").append(gmtUpdateDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_fastest_storage
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAutoFastestStorage other = (DcAutoFastestStorage) 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.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getCountryCode() == null ? other.getCountryCode() == null : this.getCountryCode().equals(other.getCountryCode()))
            && (this.getPurchaseDays() == null ? other.getPurchaseDays() == null : this.getPurchaseDays().equals(other.getPurchaseDays()))
            && (this.getTransDays() == null ? other.getTransDays() == null : this.getTransDays().equals(other.getTransDays()))
            && (this.getGmtUpdateDate() == null ? other.getGmtUpdateDate() == null : this.getGmtUpdateDate().equals(other.getGmtUpdateDate()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_fastest_storage
     *
     * @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 + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getCountryCode() == null) ? 0 : getCountryCode().hashCode());
        result = prime * result + ((getPurchaseDays() == null) ? 0 : getPurchaseDays().hashCode());
        result = prime * result + ((getTransDays() == null) ? 0 : getTransDays().hashCode());
        result = prime * result + ((getGmtUpdateDate() == null) ? 0 : getGmtUpdateDate().hashCode());
        return result;
    }
}