package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_cost_first_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;
        }
        DcMidCostFirstConfig other = (DcMidCostFirstConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCostFirstConfig() == null ? other.getCostFirstConfig() == null : this.getCostFirstConfig().equals(other.getCostFirstConfig()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_mid_cost_first_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 + ((getCostFirstConfig() == null) ? 0 : getCostFirstConfig().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        return result;
    }
}