package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

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

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_transit_from.record_time
     *
     * @mbg.generated
     */
    private LocalDate recordTime;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_transit_from.unit_price
     *
     * @mbg.generated
     */
    private BigDecimal unitPrice;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_transit_from
     *
     * @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(", bailunSku=").append(bailunSku);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", sourceWarehouseCode=").append(sourceWarehouseCode);
        sb.append(", quantityTransferDelivery=").append(quantityTransferDelivery);
        sb.append(", quantityTransferInbound=").append(quantityTransferInbound);
        sb.append(", quantityTransfer=").append(quantityTransfer);
        sb.append(", quantityTransferPlan=").append(quantityTransferPlan);
        sb.append(", recordTime=").append(recordTime);
        sb.append(", companyId=").append(companyId);
        sb.append(", unitPrice=").append(unitPrice);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_transit_from
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcDailyTransitFrom other = (DcDailyTransitFrom) 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.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getSourceWarehouseCode() == null ? other.getSourceWarehouseCode() == null : this.getSourceWarehouseCode().equals(other.getSourceWarehouseCode()))
            && (this.getQuantityTransferDelivery() == null ? other.getQuantityTransferDelivery() == null : this.getQuantityTransferDelivery().equals(other.getQuantityTransferDelivery()))
            && (this.getQuantityTransferInbound() == null ? other.getQuantityTransferInbound() == null : this.getQuantityTransferInbound().equals(other.getQuantityTransferInbound()))
            && (this.getQuantityTransfer() == null ? other.getQuantityTransfer() == null : this.getQuantityTransfer().equals(other.getQuantityTransfer()))
            && (this.getQuantityTransferPlan() == null ? other.getQuantityTransferPlan() == null : this.getQuantityTransferPlan().equals(other.getQuantityTransferPlan()))
            && (this.getRecordTime() == null ? other.getRecordTime() == null : this.getRecordTime().equals(other.getRecordTime()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getUnitPrice() == null ? other.getUnitPrice() == null : this.getUnitPrice().equals(other.getUnitPrice()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_transit_from
     *
     * @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 + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getSourceWarehouseCode() == null) ? 0 : getSourceWarehouseCode().hashCode());
        result = prime * result + ((getQuantityTransferDelivery() == null) ? 0 : getQuantityTransferDelivery().hashCode());
        result = prime * result + ((getQuantityTransferInbound() == null) ? 0 : getQuantityTransferInbound().hashCode());
        result = prime * result + ((getQuantityTransfer() == null) ? 0 : getQuantityTransfer().hashCode());
        result = prime * result + ((getQuantityTransferPlan() == null) ? 0 : getQuantityTransferPlan().hashCode());
        result = prime * result + ((getRecordTime() == null) ? 0 : getRecordTime().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getUnitPrice() == null) ? 0 : getUnitPrice().hashCode());
        return result;
    }
}