package com.bailuntec.domain.entity;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_profit_cost_first.cost_time
     *
     * @mbg.generated
     */
    private LocalDateTime costTime;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_profit_cost_first
     *
     * @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(", bailunSku=").append(bailunSku);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", costTime=").append(costTime);
        sb.append(", costFreight=").append(costFreight);
        sb.append(", costFirst=").append(costFirst);
        sb.append(", quantity=").append(quantity);
        sb.append(", accumulateQuantity=").append(accumulateQuantity);
        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_profit_cost_first
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseProfitCostFirst other = (DcBaseProfitCostFirst) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getCostTime() == null ? other.getCostTime() == null : this.getCostTime().equals(other.getCostTime()))
            && (this.getCostFreight() == null ? other.getCostFreight() == null : this.getCostFreight().equals(other.getCostFreight()))
            && (this.getCostFirst() == null ? other.getCostFirst() == null : this.getCostFirst().equals(other.getCostFirst()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getAccumulateQuantity() == null ? other.getAccumulateQuantity() == null : this.getAccumulateQuantity().equals(other.getAccumulateQuantity()))
            && (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_profit_cost_first
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getCostTime() == null) ? 0 : getCostTime().hashCode());
        result = prime * result + ((getCostFreight() == null) ? 0 : getCostFreight().hashCode());
        result = prime * result + ((getCostFirst() == null) ? 0 : getCostFirst().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getAccumulateQuantity() == null) ? 0 : getAccumulateQuantity().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }
}