package com.bailuntec.domain.entity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_cost_first_finish.has_calculation
     *
     * @mbg.generated
     */
    private Boolean hasCalculation;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_cost_first_finish.operation_time
     *
     * @mbg.generated
     */
    private LocalDateTime operationTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_cost_first_finish.bj_create_time
     *
     * @mbg.generated
     */
    private LocalDateTime bjCreateTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_cost_first_finish
     *
     * @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(", channelOrderId=").append(channelOrderId);
        sb.append(", channelId=").append(channelId);
        sb.append(", boxId=").append(boxId);
        sb.append(", transferOrderId=").append(transferOrderId);
        sb.append(", costFirst=").append(costFirst);
        sb.append(", costGoodsClearance=").append(costGoodsClearance);
        sb.append(", costDuty=").append(costDuty);
        sb.append(", costCustomsClearance=").append(costCustomsClearance);
        sb.append(", costWeight=").append(costWeight);
        sb.append(", costFuel=").append(costFuel);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", areaId=").append(areaId);
        sb.append(", companyId=").append(companyId);
        sb.append(", bailunSku=").append(bailunSku);
        sb.append(", quantity=").append(quantity);
        sb.append(", skuWeight=").append(skuWeight);
        sb.append(", skuWeightRatio=").append(skuWeightRatio);
        sb.append(", skuCostFirst=").append(skuCostFirst);
        sb.append(", skuStockQuantity=").append(skuStockQuantity);
        sb.append(", preAvlSkuCostFirst=").append(preAvlSkuCostFirst);
        sb.append(", afterAvlSkuCostFirst=").append(afterAvlSkuCostFirst);
        sb.append(", hasCalculation=").append(hasCalculation);
        sb.append(", operationTime=").append(operationTime);
        sb.append(", bjCreateTime=").append(bjCreateTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_cost_first_finish
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseCostFirstFinish other = (DcBaseCostFirstFinish) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getChannelOrderId() == null ? other.getChannelOrderId() == null : this.getChannelOrderId().equals(other.getChannelOrderId()))
            && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId()))
            && (this.getBoxId() == null ? other.getBoxId() == null : this.getBoxId().equals(other.getBoxId()))
            && (this.getTransferOrderId() == null ? other.getTransferOrderId() == null : this.getTransferOrderId().equals(other.getTransferOrderId()))
            && (this.getCostFirst() == null ? other.getCostFirst() == null : this.getCostFirst().equals(other.getCostFirst()))
            && (this.getCostGoodsClearance() == null ? other.getCostGoodsClearance() == null : this.getCostGoodsClearance().equals(other.getCostGoodsClearance()))
            && (this.getCostDuty() == null ? other.getCostDuty() == null : this.getCostDuty().equals(other.getCostDuty()))
            && (this.getCostCustomsClearance() == null ? other.getCostCustomsClearance() == null : this.getCostCustomsClearance().equals(other.getCostCustomsClearance()))
            && (this.getCostWeight() == null ? other.getCostWeight() == null : this.getCostWeight().equals(other.getCostWeight()))
            && (this.getCostFuel() == null ? other.getCostFuel() == null : this.getCostFuel().equals(other.getCostFuel()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getSkuWeight() == null ? other.getSkuWeight() == null : this.getSkuWeight().equals(other.getSkuWeight()))
            && (this.getSkuWeightRatio() == null ? other.getSkuWeightRatio() == null : this.getSkuWeightRatio().equals(other.getSkuWeightRatio()))
            && (this.getSkuCostFirst() == null ? other.getSkuCostFirst() == null : this.getSkuCostFirst().equals(other.getSkuCostFirst()))
            && (this.getSkuStockQuantity() == null ? other.getSkuStockQuantity() == null : this.getSkuStockQuantity().equals(other.getSkuStockQuantity()))
            && (this.getPreAvlSkuCostFirst() == null ? other.getPreAvlSkuCostFirst() == null : this.getPreAvlSkuCostFirst().equals(other.getPreAvlSkuCostFirst()))
            && (this.getAfterAvlSkuCostFirst() == null ? other.getAfterAvlSkuCostFirst() == null : this.getAfterAvlSkuCostFirst().equals(other.getAfterAvlSkuCostFirst()))
            && (this.getHasCalculation() == null ? other.getHasCalculation() == null : this.getHasCalculation().equals(other.getHasCalculation()))
            && (this.getOperationTime() == null ? other.getOperationTime() == null : this.getOperationTime().equals(other.getOperationTime()))
            && (this.getBjCreateTime() == null ? other.getBjCreateTime() == null : this.getBjCreateTime().equals(other.getBjCreateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_cost_first_finish
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChannelOrderId() == null) ? 0 : getChannelOrderId().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getBoxId() == null) ? 0 : getBoxId().hashCode());
        result = prime * result + ((getTransferOrderId() == null) ? 0 : getTransferOrderId().hashCode());
        result = prime * result + ((getCostFirst() == null) ? 0 : getCostFirst().hashCode());
        result = prime * result + ((getCostGoodsClearance() == null) ? 0 : getCostGoodsClearance().hashCode());
        result = prime * result + ((getCostDuty() == null) ? 0 : getCostDuty().hashCode());
        result = prime * result + ((getCostCustomsClearance() == null) ? 0 : getCostCustomsClearance().hashCode());
        result = prime * result + ((getCostWeight() == null) ? 0 : getCostWeight().hashCode());
        result = prime * result + ((getCostFuel() == null) ? 0 : getCostFuel().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getSkuWeight() == null) ? 0 : getSkuWeight().hashCode());
        result = prime * result + ((getSkuWeightRatio() == null) ? 0 : getSkuWeightRatio().hashCode());
        result = prime * result + ((getSkuCostFirst() == null) ? 0 : getSkuCostFirst().hashCode());
        result = prime * result + ((getSkuStockQuantity() == null) ? 0 : getSkuStockQuantity().hashCode());
        result = prime * result + ((getPreAvlSkuCostFirst() == null) ? 0 : getPreAvlSkuCostFirst().hashCode());
        result = prime * result + ((getAfterAvlSkuCostFirst() == null) ? 0 : getAfterAvlSkuCostFirst().hashCode());
        result = prime * result + ((getHasCalculation() == null) ? 0 : getHasCalculation().hashCode());
        result = prime * result + ((getOperationTime() == null) ? 0 : getOperationTime().hashCode());
        result = prime * result + ((getBjCreateTime() == null) ? 0 : getBjCreateTime().hashCode());
        return result;
    }
}