package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_tag.quantity_sales7
     *
     * @mbg.generated
     */
    private BigDecimal quantitySales7;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_tag.quantity_sales14
     *
     * @mbg.generated
     */
    private BigDecimal quantitySales14;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_tag.quantity_safe_inventory
     *
     * @mbg.generated
     */
    private BigDecimal quantitySafeInventory;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_tag.gmt_update
     *
     * @mbg.generated
     */
    private LocalDateTime gmtUpdate;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_tag
     *
     * @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(", tagName=").append(tagName);
        sb.append(", isGt7=").append(isGt7);
        sb.append(", enable7=").append(enable7);
        sb.append(", quantitySales7=").append(quantitySales7);
        sb.append(", isGt14=").append(isGt14);
        sb.append(", enable14=").append(enable14);
        sb.append(", quantitySales14=").append(quantitySales14);
        sb.append(", quantitySafeInventory=").append(quantitySafeInventory);
        sb.append(", level=").append(level);
        sb.append(", isEliminate=").append(isEliminate);
        sb.append(", gmtUpdate=").append(gmtUpdate);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_tag
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAutoJitTag other = (DcAutoJitTag) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTagName() == null ? other.getTagName() == null : this.getTagName().equals(other.getTagName()))
            && (this.getIsGt7() == null ? other.getIsGt7() == null : this.getIsGt7().equals(other.getIsGt7()))
            && (this.getEnable7() == null ? other.getEnable7() == null : this.getEnable7().equals(other.getEnable7()))
            && (this.getQuantitySales7() == null ? other.getQuantitySales7() == null : this.getQuantitySales7().equals(other.getQuantitySales7()))
            && (this.getIsGt14() == null ? other.getIsGt14() == null : this.getIsGt14().equals(other.getIsGt14()))
            && (this.getEnable14() == null ? other.getEnable14() == null : this.getEnable14().equals(other.getEnable14()))
            && (this.getQuantitySales14() == null ? other.getQuantitySales14() == null : this.getQuantitySales14().equals(other.getQuantitySales14()))
            && (this.getQuantitySafeInventory() == null ? other.getQuantitySafeInventory() == null : this.getQuantitySafeInventory().equals(other.getQuantitySafeInventory()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getIsEliminate() == null ? other.getIsEliminate() == null : this.getIsEliminate().equals(other.getIsEliminate()))
            && (this.getGmtUpdate() == null ? other.getGmtUpdate() == null : this.getGmtUpdate().equals(other.getGmtUpdate()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_tag
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTagName() == null) ? 0 : getTagName().hashCode());
        result = prime * result + ((getIsGt7() == null) ? 0 : getIsGt7().hashCode());
        result = prime * result + ((getEnable7() == null) ? 0 : getEnable7().hashCode());
        result = prime * result + ((getQuantitySales7() == null) ? 0 : getQuantitySales7().hashCode());
        result = prime * result + ((getIsGt14() == null) ? 0 : getIsGt14().hashCode());
        result = prime * result + ((getEnable14() == null) ? 0 : getEnable14().hashCode());
        result = prime * result + ((getQuantitySales14() == null) ? 0 : getQuantitySales14().hashCode());
        result = prime * result + ((getQuantitySafeInventory() == null) ? 0 : getQuantitySafeInventory().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getIsEliminate() == null) ? 0 : getIsEliminate().hashCode());
        result = prime * result + ((getGmtUpdate() == null) ? 0 : getGmtUpdate().hashCode());
        return result;
    }
}