package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_prod.jit_prod_stock
     *
     * @mbg.generated
     */
    private BigDecimal jitProdStock;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_prod.plan_prod_stock
     *
     * @mbg.generated
     */
    private BigDecimal planProdStock;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_prod.new_price
     *
     * @mbg.generated
     */
    private BigDecimal newPrice;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_prod
     *
     * @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(", materialId=").append(materialId);
        sb.append(", warehouseId=").append(warehouseId);
        sb.append(", jitProdStock=").append(jitProdStock);
        sb.append(", planProdStock=").append(planProdStock);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", materialCode=").append(materialCode);
        sb.append(", materialName=").append(materialName);
        sb.append(", materialCategory=").append(materialCategory);
        sb.append(", newPrice=").append(newPrice);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModify=").append(gmtModify);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_prod
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcSemiStockProd other = (DcSemiStockProd) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
            && (this.getWarehouseId() == null ? other.getWarehouseId() == null : this.getWarehouseId().equals(other.getWarehouseId()))
            && (this.getJitProdStock() == null ? other.getJitProdStock() == null : this.getJitProdStock().equals(other.getJitProdStock()))
            && (this.getPlanProdStock() == null ? other.getPlanProdStock() == null : this.getPlanProdStock().equals(other.getPlanProdStock()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getMaterialCode() == null ? other.getMaterialCode() == null : this.getMaterialCode().equals(other.getMaterialCode()))
            && (this.getMaterialName() == null ? other.getMaterialName() == null : this.getMaterialName().equals(other.getMaterialName()))
            && (this.getMaterialCategory() == null ? other.getMaterialCategory() == null : this.getMaterialCategory().equals(other.getMaterialCategory()))
            && (this.getNewPrice() == null ? other.getNewPrice() == null : this.getNewPrice().equals(other.getNewPrice()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModify() == null ? other.getGmtModify() == null : this.getGmtModify().equals(other.getGmtModify()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_prod
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
        result = prime * result + ((getWarehouseId() == null) ? 0 : getWarehouseId().hashCode());
        result = prime * result + ((getJitProdStock() == null) ? 0 : getJitProdStock().hashCode());
        result = prime * result + ((getPlanProdStock() == null) ? 0 : getPlanProdStock().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getMaterialCode() == null) ? 0 : getMaterialCode().hashCode());
        result = prime * result + ((getMaterialName() == null) ? 0 : getMaterialName().hashCode());
        result = prime * result + ((getMaterialCategory() == null) ? 0 : getMaterialCategory().hashCode());
        result = prime * result + ((getNewPrice() == null) ? 0 : getNewPrice().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModify() == null) ? 0 : getGmtModify().hashCode());
        return result;
    }
}