package com.bailuntec.domain.entity;

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_replace_logistics_task.transfer_bale_delivery
     *
     * @mbg.generated
     */
    private BigDecimal transferBaleDelivery;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_replace_logistics_task.abroad_inbound_delivery
     *
     * @mbg.generated
     */
    private BigDecimal abroadInboundDelivery;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_replace_logistics_task.transfer_delivery
     *
     * @mbg.generated
     */
    private BigDecimal transferDelivery;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_replace_logistics_task.update_date
     *
     * @mbg.generated
     */
    private LocalDateTime updateDate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_replace_logistics_task.create_date
     *
     * @mbg.generated
     */
    private LocalDateTime createDate;

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_replace_logistics_task
     *
     * @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(", transferBaleDelivery=").append(transferBaleDelivery);
        sb.append(", abroadInboundDelivery=").append(abroadInboundDelivery);
        sb.append(", transferDelivery=").append(transferDelivery);
        sb.append(", status=").append(status);
        sb.append(", errorMessage=").append(errorMessage);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", createDate=").append(createDate);
        sb.append(", errorStackTrace=").append(errorStackTrace);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_replace_logistics_task
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAutoReplaceLogisticsTask other = (DcAutoReplaceLogisticsTask) 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.getTransferBaleDelivery() == null ? other.getTransferBaleDelivery() == null : this.getTransferBaleDelivery().equals(other.getTransferBaleDelivery()))
            && (this.getAbroadInboundDelivery() == null ? other.getAbroadInboundDelivery() == null : this.getAbroadInboundDelivery().equals(other.getAbroadInboundDelivery()))
            && (this.getTransferDelivery() == null ? other.getTransferDelivery() == null : this.getTransferDelivery().equals(other.getTransferDelivery()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getErrorMessage() == null ? other.getErrorMessage() == null : this.getErrorMessage().equals(other.getErrorMessage()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getErrorStackTrace() == null ? other.getErrorStackTrace() == null : this.getErrorStackTrace().equals(other.getErrorStackTrace()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_replace_logistics_task
     *
     * @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 + ((getTransferBaleDelivery() == null) ? 0 : getTransferBaleDelivery().hashCode());
        result = prime * result + ((getAbroadInboundDelivery() == null) ? 0 : getAbroadInboundDelivery().hashCode());
        result = prime * result + ((getTransferDelivery() == null) ? 0 : getTransferDelivery().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getErrorStackTrace() == null) ? 0 : getErrorStackTrace().hashCode());
        return result;
    }
}