package com.bailuntec.domain.entity;

import lombok.Data;

import java.time.LocalDateTime;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_stock_fba.gmt_create
     *
     * @mbg.generated
     */
    private LocalDateTime gmtCreate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_stock_fba.gmt_modified
     *
     * @mbg.generated
     */
    private LocalDateTime gmtModified;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_stock_fba.usable_stock
     *
     * @mbg.generated
     */
    private Integer usableStock;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_stock_fba.in_warehouse
     *
     * @mbg.generated
     */
    private Integer inWarehouse;

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_stock_fba
     *
     * @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(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", bailunSku=").append(bailunSku);
        sb.append(", platformSku=").append(platformSku);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", usableStock=").append(usableStock);
        sb.append(", inWarehouse=").append(inWarehouse);
        sb.append(", asin=").append(asin);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_stock_fba
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseStockFba other = (DcBaseStockFba) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getPlatformSku() == null ? other.getPlatformSku() == null : this.getPlatformSku().equals(other.getPlatformSku()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getUsableStock() == null ? other.getUsableStock() == null : this.getUsableStock().equals(other.getUsableStock()))
            && (this.getInWarehouse() == null ? other.getInWarehouse() == null : this.getInWarehouse().equals(other.getInWarehouse()))
            && (this.getAsin() == null ? other.getAsin() == null : this.getAsin().equals(other.getAsin()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_stock_fba
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getPlatformSku() == null) ? 0 : getPlatformSku().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getUsableStock() == null) ? 0 : getUsableStock().hashCode());
        result = prime * result + ((getInWarehouse() == null) ? 0 : getInWarehouse().hashCode());
        result = prime * result + ((getAsin() == null) ? 0 : getAsin().hashCode());
        return result;
    }
}