package com.bailuntec.domain.entity;

import lombok.Data;

import java.time.LocalDateTime;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.quantity_purchase
     *
     * @mbg.generated
     */
    private Integer quantityPurchase;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.gmt_purchase_modified
     *
     * @mbg.generated
     */
    private LocalDateTime gmtPurchaseModified;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.quantity_transfer
     *
     * @mbg.generated
     */
    private Integer quantityTransfer;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.gmt_transfer_modified
     *
     * @mbg.generated
     */
    private LocalDateTime gmtTransferModified;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.quantity_out_stock
     *
     * @mbg.generated
     */
    private Integer quantityOutStock;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.gmt_out_stock_modified
     *
     * @mbg.generated
     */
    private LocalDateTime gmtOutStockModified;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_transit
     *
     * @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(", quantityPurchase=").append(quantityPurchase);
        sb.append(", gmtPurchaseModified=").append(gmtPurchaseModified);
        sb.append(", quantityTransfer=").append(quantityTransfer);
        sb.append(", gmtTransferModified=").append(gmtTransferModified);
        sb.append(", quantityOutStock=").append(quantityOutStock);
        sb.append(", gmtOutStockModified=").append(gmtOutStockModified);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_transit
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcMidTransit other = (DcMidTransit) 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.getQuantityPurchase() == null ? other.getQuantityPurchase() == null : this.getQuantityPurchase().equals(other.getQuantityPurchase()))
            && (this.getGmtPurchaseModified() == null ? other.getGmtPurchaseModified() == null : this.getGmtPurchaseModified().equals(other.getGmtPurchaseModified()))
            && (this.getQuantityTransfer() == null ? other.getQuantityTransfer() == null : this.getQuantityTransfer().equals(other.getQuantityTransfer()))
            && (this.getGmtTransferModified() == null ? other.getGmtTransferModified() == null : this.getGmtTransferModified().equals(other.getGmtTransferModified()))
            && (this.getQuantityOutStock() == null ? other.getQuantityOutStock() == null : this.getQuantityOutStock().equals(other.getQuantityOutStock()))
            && (this.getGmtOutStockModified() == null ? other.getGmtOutStockModified() == null : this.getGmtOutStockModified().equals(other.getGmtOutStockModified()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_transit
     *
     * @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 + ((getQuantityPurchase() == null) ? 0 : getQuantityPurchase().hashCode());
        result = prime * result + ((getGmtPurchaseModified() == null) ? 0 : getGmtPurchaseModified().hashCode());
        result = prime * result + ((getQuantityTransfer() == null) ? 0 : getQuantityTransfer().hashCode());
        result = prime * result + ((getGmtTransferModified() == null) ? 0 : getGmtTransferModified().hashCode());
        result = prime * result + ((getQuantityOutStock() == null) ? 0 : getQuantityOutStock().hashCode());
        result = prime * result + ((getGmtOutStockModified() == null) ? 0 : getGmtOutStockModified().hashCode());
        return result;
    }
}