package com.bailuntec.domain.entity;

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_trans_expectarrivaltime
     *
     * @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(", expectarrivaltime=").append(expectarrivaltime);
        sb.append(", count=").append(count);
        sb.append(", transferOrderId=").append(transferOrderId);
        sb.append(", purchaseId=").append(purchaseId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_trans_expectarrivaltime
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseTransExpectarrivaltime other = (DcBaseTransExpectarrivaltime) 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.getExpectarrivaltime() == null ? other.getExpectarrivaltime() == null : this.getExpectarrivaltime().equals(other.getExpectarrivaltime()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getTransferOrderId() == null ? other.getTransferOrderId() == null : this.getTransferOrderId().equals(other.getTransferOrderId()))
            && (this.getPurchaseId() == null ? other.getPurchaseId() == null : this.getPurchaseId().equals(other.getPurchaseId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_trans_expectarrivaltime
     *
     * @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 + ((getExpectarrivaltime() == null) ? 0 : getExpectarrivaltime().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getTransferOrderId() == null) ? 0 : getTransferOrderId().hashCode());
        result = prime * result + ((getPurchaseId() == null) ? 0 : getPurchaseId().hashCode());
        return result;
    }
}