package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_uprush_config
     *
     * @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(", warehouseCode=").append(warehouseCode);
        sb.append(", percentage=").append(percentage);
        sb.append(", hqType=").append(hqType);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_uprush_config
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAutoUprushConfig other = (DcAutoUprushConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getPercentage() == null ? other.getPercentage() == null : this.getPercentage().equals(other.getPercentage()))
            && (this.getHqType() == null ? other.getHqType() == null : this.getHqType().equals(other.getHqType()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_uprush_config
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getPercentage() == null) ? 0 : getPercentage().hashCode());
        result = prime * result + ((getHqType() == null) ? 0 : getHqType().hashCode());
        return result;
    }
}