package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

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

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_stock_date.has_init
     *
     * @mbg.generated
     */
    private Boolean hasInit;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_mid_stock_date.report_date
     *
     * @mbg.generated
     */
    private LocalDate reportDate;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_stock_date
     *
     * @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(", warehouseName=").append(warehouseName);
        sb.append(", quantityStock=").append(quantityStock);
        sb.append(", stockTime=").append(stockTime);
        sb.append(", unitPrice=").append(unitPrice);
        sb.append(", initStock=").append(initStock);
        sb.append(", hasInit=").append(hasInit);
        sb.append(", hasTransfer=").append(hasTransfer);
        sb.append(", reportDate=").append(reportDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_stock_date
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcMidStockDate other = (DcMidStockDate) 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.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getQuantityStock() == null ? other.getQuantityStock() == null : this.getQuantityStock().equals(other.getQuantityStock()))
            && (this.getStockTime() == null ? other.getStockTime() == null : this.getStockTime().equals(other.getStockTime()))
            && (this.getUnitPrice() == null ? other.getUnitPrice() == null : this.getUnitPrice().equals(other.getUnitPrice()))
            && (this.getInitStock() == null ? other.getInitStock() == null : this.getInitStock().equals(other.getInitStock()))
            && (this.getHasInit() == null ? other.getHasInit() == null : this.getHasInit().equals(other.getHasInit()))
            && (this.getHasTransfer() == null ? other.getHasTransfer() == null : this.getHasTransfer().equals(other.getHasTransfer()))
            && (this.getReportDate() == null ? other.getReportDate() == null : this.getReportDate().equals(other.getReportDate()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_stock_date
     *
     * @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 + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getQuantityStock() == null) ? 0 : getQuantityStock().hashCode());
        result = prime * result + ((getStockTime() == null) ? 0 : getStockTime().hashCode());
        result = prime * result + ((getUnitPrice() == null) ? 0 : getUnitPrice().hashCode());
        result = prime * result + ((getInitStock() == null) ? 0 : getInitStock().hashCode());
        result = prime * result + ((getHasInit() == null) ? 0 : getHasInit().hashCode());
        result = prime * result + ((getHasTransfer() == null) ? 0 : getHasTransfer().hashCode());
        result = prime * result + ((getReportDate() == null) ? 0 : getReportDate().hashCode());
        return result;
    }
}