package com.bailuntec.domain.entity;

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

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

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

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_logistics_rules
     *
     * @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(", country=").append(country);
        sb.append(", city=").append(city);
        sb.append(", registrationFee=").append(registrationFee);
        sb.append(", logisticsFee=").append(logisticsFee);
        sb.append(", weightLimit=").append(weightLimit);
        sb.append(", heightLimit=").append(heightLimit);
        sb.append(", type=").append(type);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_logistics_rules
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcLogisticsRules other = (DcLogisticsRules) 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.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getRegistrationFee() == null ? other.getRegistrationFee() == null : this.getRegistrationFee().equals(other.getRegistrationFee()))
            && (this.getLogisticsFee() == null ? other.getLogisticsFee() == null : this.getLogisticsFee().equals(other.getLogisticsFee()))
            && (this.getWeightLimit() == null ? other.getWeightLimit() == null : this.getWeightLimit().equals(other.getWeightLimit()))
            && (this.getHeightLimit() == null ? other.getHeightLimit() == null : this.getHeightLimit().equals(other.getHeightLimit()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_logistics_rules
     *
     * @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 + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getRegistrationFee() == null) ? 0 : getRegistrationFee().hashCode());
        result = prime * result + ((getLogisticsFee() == null) ? 0 : getLogisticsFee().hashCode());
        result = prime * result + ((getWeightLimit() == null) ? 0 : getWeightLimit().hashCode());
        result = prime * result + ((getHeightLimit() == null) ? 0 : getHeightLimit().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        return result;
    }
}