package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_report.log_id
     *
     * @mbg.generated
     */
    private Integer logId;

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_report.create_time
     *
     * @mbg.generated
     */
    private LocalDateTime createTime;

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

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

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

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

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_report.is_selfcontained
     *
     * @mbg.generated
     */
    private Boolean isSelfcontained;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_semi_stock_report.is_zichang
     *
     * @mbg.generated
     */
    private Boolean isZichang;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_report
     *
     * @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(", uniqueNo=").append(uniqueNo);
        sb.append(", logId=").append(logId);
        sb.append(", warehouseType=").append(warehouseType);
        sb.append(", warehouseTypeStr=").append(warehouseTypeStr);
        sb.append(", materialId=").append(materialId);
        sb.append(", stock=").append(stock);
        sb.append(", createUserName=").append(createUserName);
        sb.append(", createTime=").append(createTime);
        sb.append(", warehouseId=").append(warehouseId);
        sb.append(", stockType=").append(stockType);
        sb.append(", stockTypeStr=").append(stockTypeStr);
        sb.append(", materialCode=").append(materialCode);
        sb.append(", materialName=").append(materialName);
        sb.append(", materialCategory=").append(materialCategory);
        sb.append(", newPrice=").append(newPrice);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", supplierName=").append(supplierName);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", isSelfcontained=").append(isSelfcontained);
        sb.append(", isSelfcontainedStr=").append(isSelfcontainedStr);
        sb.append(", remarks=").append(remarks);
        sb.append(", isZichang=").append(isZichang);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_report
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcSemiStockReport other = (DcSemiStockReport) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUniqueNo() == null ? other.getUniqueNo() == null : this.getUniqueNo().equals(other.getUniqueNo()))
            && (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
            && (this.getWarehouseType() == null ? other.getWarehouseType() == null : this.getWarehouseType().equals(other.getWarehouseType()))
            && (this.getWarehouseTypeStr() == null ? other.getWarehouseTypeStr() == null : this.getWarehouseTypeStr().equals(other.getWarehouseTypeStr()))
            && (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
            && (this.getStock() == null ? other.getStock() == null : this.getStock().equals(other.getStock()))
            && (this.getCreateUserName() == null ? other.getCreateUserName() == null : this.getCreateUserName().equals(other.getCreateUserName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getWarehouseId() == null ? other.getWarehouseId() == null : this.getWarehouseId().equals(other.getWarehouseId()))
            && (this.getStockType() == null ? other.getStockType() == null : this.getStockType().equals(other.getStockType()))
            && (this.getStockTypeStr() == null ? other.getStockTypeStr() == null : this.getStockTypeStr().equals(other.getStockTypeStr()))
            && (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.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getSupplierName() == null ? other.getSupplierName() == null : this.getSupplierName().equals(other.getSupplierName()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getIsSelfcontained() == null ? other.getIsSelfcontained() == null : this.getIsSelfcontained().equals(other.getIsSelfcontained()))
            && (this.getIsSelfcontainedStr() == null ? other.getIsSelfcontainedStr() == null : this.getIsSelfcontainedStr().equals(other.getIsSelfcontainedStr()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getIsZichang() == null ? other.getIsZichang() == null : this.getIsZichang().equals(other.getIsZichang()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_semi_stock_report
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUniqueNo() == null) ? 0 : getUniqueNo().hashCode());
        result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
        result = prime * result + ((getWarehouseType() == null) ? 0 : getWarehouseType().hashCode());
        result = prime * result + ((getWarehouseTypeStr() == null) ? 0 : getWarehouseTypeStr().hashCode());
        result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
        result = prime * result + ((getStock() == null) ? 0 : getStock().hashCode());
        result = prime * result + ((getCreateUserName() == null) ? 0 : getCreateUserName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getWarehouseId() == null) ? 0 : getWarehouseId().hashCode());
        result = prime * result + ((getStockType() == null) ? 0 : getStockType().hashCode());
        result = prime * result + ((getStockTypeStr() == null) ? 0 : getStockTypeStr().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 + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getSupplierName() == null) ? 0 : getSupplierName().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getIsSelfcontained() == null) ? 0 : getIsSelfcontained().hashCode());
        result = prime * result + ((getIsSelfcontainedStr() == null) ? 0 : getIsSelfcontainedStr().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getIsZichang() == null) ? 0 : getIsZichang().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }
}