package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;
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 field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.quantity_unshipped
     *
     * @mbg.generated
     */
    private Integer quantityUnshipped;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_transit.amount_purchase_transit
     *
     * @mbg.generated
     */
    private BigDecimal amountPurchaseTransit;

    /**
     * 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(", quantityUnshipped=").append(quantityUnshipped);
        sb.append(", gmtUnshippedModified=").append(gmtUnshippedModified);
        sb.append(", companyId=").append(companyId);
        sb.append(", amountPurchaseTransit=").append(amountPurchaseTransit);
        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.getQuantityUnshipped() == null ? other.getQuantityUnshipped() == null : this.getQuantityUnshipped().equals(other.getQuantityUnshipped()))
            && (this.getGmtUnshippedModified() == null ? other.getGmtUnshippedModified() == null : this.getGmtUnshippedModified().equals(other.getGmtUnshippedModified()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getAmountPurchaseTransit() == null ? other.getAmountPurchaseTransit() == null : this.getAmountPurchaseTransit().equals(other.getAmountPurchaseTransit()));
    }

    /**
     * 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());
        result = prime * result + ((getQuantityUnshipped() == null) ? 0 : getQuantityUnshipped().hashCode());
        result = prime * result + ((getGmtUnshippedModified() == null) ? 0 : getGmtUnshippedModified().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getAmountPurchaseTransit() == null) ? 0 : getAmountPurchaseTransit().hashCode());
        return result;
    }
}