package com.bailuntec.domain.entity;

import lombok.Data;

import java.time.LocalDateTime;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_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(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", warehouseExtendName=").append(warehouseExtendName);
        sb.append(", functions=").append(functions);
        sb.append(", warehouseOldCode=").append(warehouseOldCode);
        sb.append(", systemFlag=").append(systemFlag);
        sb.append(", bailunAccountId=").append(bailunAccountId);
        sb.append(", bailunAccount=").append(bailunAccount);
        sb.append(", hqType=").append(hqType);
        sb.append(", typeId=").append(typeId);
        sb.append(", typeName=").append(typeName);
        sb.append(", areaId=").append(areaId);
        sb.append(", areaName=").append(areaName);
        sb.append(", warehouseId=").append(warehouseId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_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;
        }
        DcBaseWarehouse other = (DcBaseWarehouse) 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.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getWarehouseExtendName() == null ? other.getWarehouseExtendName() == null : this.getWarehouseExtendName().equals(other.getWarehouseExtendName()))
            && (this.getFunctions() == null ? other.getFunctions() == null : this.getFunctions().equals(other.getFunctions()))
            && (this.getWarehouseOldCode() == null ? other.getWarehouseOldCode() == null : this.getWarehouseOldCode().equals(other.getWarehouseOldCode()))
            && (this.getSystemFlag() == null ? other.getSystemFlag() == null : this.getSystemFlag().equals(other.getSystemFlag()))
            && (this.getBailunAccountId() == null ? other.getBailunAccountId() == null : this.getBailunAccountId().equals(other.getBailunAccountId()))
            && (this.getBailunAccount() == null ? other.getBailunAccount() == null : this.getBailunAccount().equals(other.getBailunAccount()))
            && (this.getHqType() == null ? other.getHqType() == null : this.getHqType().equals(other.getHqType()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getTypeName() == null ? other.getTypeName() == null : this.getTypeName().equals(other.getTypeName()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()))
            && (this.getAreaName() == null ? other.getAreaName() == null : this.getAreaName().equals(other.getAreaName()))
            && (this.getWarehouseId() == null ? other.getWarehouseId() == null : this.getWarehouseId().equals(other.getWarehouseId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_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 + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getWarehouseExtendName() == null) ? 0 : getWarehouseExtendName().hashCode());
        result = prime * result + ((getFunctions() == null) ? 0 : getFunctions().hashCode());
        result = prime * result + ((getWarehouseOldCode() == null) ? 0 : getWarehouseOldCode().hashCode());
        result = prime * result + ((getSystemFlag() == null) ? 0 : getSystemFlag().hashCode());
        result = prime * result + ((getBailunAccountId() == null) ? 0 : getBailunAccountId().hashCode());
        result = prime * result + ((getBailunAccount() == null) ? 0 : getBailunAccount().hashCode());
        result = prime * result + ((getHqType() == null) ? 0 : getHqType().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getTypeName() == null) ? 0 : getTypeName().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getAreaName() == null) ? 0 : getAreaName().hashCode());
        result = prime * result + ((getWarehouseId() == null) ? 0 : getWarehouseId().hashCode());
        return result;
    }
}