package com.bailuntec.domain.entity;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_oms_pick_variances.old_weight
     *
     * @mbg.generated
     */
    private BigDecimal oldWeight;
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_oms_pick_variances.old_cost
     *
     * @mbg.generated
     */
    private BigDecimal oldCost;

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_oms_pick_variances
     *
     * @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(", bailunOrderId=").append(bailunOrderId);
        sb.append(", pickOrderId=").append(pickOrderId);
        sb.append(", oldWeight=").append(oldWeight);
        sb.append(", oldCost=").append(oldCost);
        sb.append(", newWeight=").append(newWeight);
        sb.append(", newCost=").append(newCost);
        sb.append(", billWeight=").append(billWeight);
        sb.append(", billCost=").append(billCost);
        sb.append(", weightDifference=").append(weightDifference);
        sb.append(", costDifference=").append(costDifference);
        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_base_oms_pick_variances
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseOmsPickVariances other = (DcBaseOmsPickVariances) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailunOrderId() == null ? other.getBailunOrderId() == null : this.getBailunOrderId().equals(other.getBailunOrderId()))
            && (this.getPickOrderId() == null ? other.getPickOrderId() == null : this.getPickOrderId().equals(other.getPickOrderId()))
            && (this.getOldWeight() == null ? other.getOldWeight() == null : this.getOldWeight().equals(other.getOldWeight()))
            && (this.getOldCost() == null ? other.getOldCost() == null : this.getOldCost().equals(other.getOldCost()))
            && (this.getNewWeight() == null ? other.getNewWeight() == null : this.getNewWeight().equals(other.getNewWeight()))
            && (this.getNewCost() == null ? other.getNewCost() == null : this.getNewCost().equals(other.getNewCost()))
            && (this.getBillWeight() == null ? other.getBillWeight() == null : this.getBillWeight().equals(other.getBillWeight()))
            && (this.getBillCost() == null ? other.getBillCost() == null : this.getBillCost().equals(other.getBillCost()))
            && (this.getWeightDifference() == null ? other.getWeightDifference() == null : this.getWeightDifference().equals(other.getWeightDifference()))
            && (this.getCostDifference() == null ? other.getCostDifference() == null : this.getCostDifference().equals(other.getCostDifference()))
            && (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_base_oms_pick_variances
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailunOrderId() == null) ? 0 : getBailunOrderId().hashCode());
        result = prime * result + ((getPickOrderId() == null) ? 0 : getPickOrderId().hashCode());
        result = prime * result + ((getOldWeight() == null) ? 0 : getOldWeight().hashCode());
        result = prime * result + ((getOldCost() == null) ? 0 : getOldCost().hashCode());
        result = prime * result + ((getNewWeight() == null) ? 0 : getNewWeight().hashCode());
        result = prime * result + ((getNewCost() == null) ? 0 : getNewCost().hashCode());
        result = prime * result + ((getBillWeight() == null) ? 0 : getBillWeight().hashCode());
        result = prime * result + ((getBillCost() == null) ? 0 : getBillCost().hashCode());
        result = prime * result + ((getWeightDifference() == null) ? 0 : getWeightDifference().hashCode());
        result = prime * result + ((getCostDifference() == null) ? 0 : getCostDifference().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }
}