package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_average_warehouse.transfer_type_1_days
     *
     * @mbg.generated
     */
    private BigDecimal transferType1Days;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_average_warehouse.transfer_type_2_days
     *
     * @mbg.generated
     */
    private BigDecimal transferType2Days;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_average_warehouse.transfer_bale_delivery
     *
     * @mbg.generated
     */
    private BigDecimal transferBaleDelivery;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_average_warehouse.abroad_inbound_delivery
     *
     * @mbg.generated
     */
    private BigDecimal abroadInboundDelivery;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_average_warehouse.transfer_delivery
     *
     * @mbg.generated
     */
    private BigDecimal transferDelivery;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_average_warehouse
     *
     * @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(", inboundDays=").append(inboundDays);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", transferType1Days=").append(transferType1Days);
        sb.append(", transferType2Days=").append(transferType2Days);
        sb.append(", transferBaleDelivery=").append(transferBaleDelivery);
        sb.append(", abroadInboundDelivery=").append(abroadInboundDelivery);
        sb.append(", transferDelivery=").append(transferDelivery);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_average_warehouse
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAverageWarehouse other = (DcAverageWarehouse) 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.getInboundDays() == null ? other.getInboundDays() == null : this.getInboundDays().equals(other.getInboundDays()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTransferType1Days() == null ? other.getTransferType1Days() == null : this.getTransferType1Days().equals(other.getTransferType1Days()))
            && (this.getTransferType2Days() == null ? other.getTransferType2Days() == null : this.getTransferType2Days().equals(other.getTransferType2Days()))
            && (this.getTransferBaleDelivery() == null ? other.getTransferBaleDelivery() == null : this.getTransferBaleDelivery().equals(other.getTransferBaleDelivery()))
            && (this.getAbroadInboundDelivery() == null ? other.getAbroadInboundDelivery() == null : this.getAbroadInboundDelivery().equals(other.getAbroadInboundDelivery()))
            && (this.getTransferDelivery() == null ? other.getTransferDelivery() == null : this.getTransferDelivery().equals(other.getTransferDelivery()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_average_warehouse
     *
     * @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 + ((getInboundDays() == null) ? 0 : getInboundDays().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTransferType1Days() == null) ? 0 : getTransferType1Days().hashCode());
        result = prime * result + ((getTransferType2Days() == null) ? 0 : getTransferType2Days().hashCode());
        result = prime * result + ((getTransferBaleDelivery() == null) ? 0 : getTransferBaleDelivery().hashCode());
        result = prime * result + ((getAbroadInboundDelivery() == null) ? 0 : getAbroadInboundDelivery().hashCode());
        result = prime * result + ((getTransferDelivery() == null) ? 0 : getTransferDelivery().hashCode());
        return result;
    }
}