package com.bailuntec.domain.entity;

import lombok.Data;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.platform_type
     *
     * @mbg.generated
     */
    private String platformType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.bailun_account
     *
     * @mbg.generated
     */
    private String bailunAccount;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.origin_order_id
     *
     * @mbg.generated
     */
    private String originOrderId;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.platform_sku
     *
     * @mbg.generated
     */
    private String platformSku;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.amount_refund
     *
     * @mbg.generated
     */
    private BigDecimal amountRefund;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.order_currency
     *
     * @mbg.generated
     */
    private String orderCurrency;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.refund_time
     *
     * @mbg.generated
     */
    private LocalDateTime refundTime;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.bailun_sku_unit_price
     *
     * @mbg.generated
     */
    private BigDecimal bailunSkuUnitPrice;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.amount_refund_rmb
     *
     * @mbg.generated
     */
    private BigDecimal amountRefundRmb;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.amount_refund_usd
     *
     * @mbg.generated
     */
    private BigDecimal amountRefundUsd;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.order_total_amount
     *
     * @mbg.generated
     */
    private BigDecimal orderTotalAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.usd_order_total_amount
     *
     * @mbg.generated
     */
    private BigDecimal usdOrderTotalAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.product_sale_amount
     *
     * @mbg.generated
     */
    private BigDecimal productSaleAmount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.is_deleted
     *
     * @mbg.generated
     */
    private Boolean isDeleted;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.is_freeze
     *
     * @mbg.generated
     */
    private Boolean isFreeze;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.order_status
     *
     * @mbg.generated
     */
    private String orderStatus;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_crm_refund.shipping_status
     *
     * @mbg.generated
     */
    private String shippingStatus;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_crm_refund
     *
     * @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(", platformType=").append(platformType);
        sb.append(", bailunAccount=").append(bailunAccount);
        sb.append(", bailunAccountId=").append(bailunAccountId);
        sb.append(", website=").append(website);
        sb.append(", originOrderId=").append(originOrderId);
        sb.append(", bailunSku=").append(bailunSku);
        sb.append(", platformSku=").append(platformSku);
        sb.append(", amountRefund=").append(amountRefund);
        sb.append(", orderCurrency=").append(orderCurrency);
        sb.append(", refundTime=").append(refundTime);
        sb.append(", bailunSkuQuantityRefund=").append(bailunSkuQuantityRefund);
        sb.append(", bailunSkuUnitPrice=").append(bailunSkuUnitPrice);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", linked=").append(linked);
        sb.append(", amountRefundRmb=").append(amountRefundRmb);
        sb.append(", crmId=").append(crmId);
        sb.append(", amountRefundUsd=").append(amountRefundUsd);
        sb.append(", companyId=").append(companyId);
        sb.append(", orderTotalAmount=").append(orderTotalAmount);
        sb.append(", usdOrderTotalAmount=").append(usdOrderTotalAmount);
        sb.append(", productSaleAmount=").append(productSaleAmount);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", isFreeze=").append(isFreeze);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", shippingStatus=").append(shippingStatus);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_crm_refund
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseCrmRefund other = (DcBaseCrmRefund) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlatformType() == null ? other.getPlatformType() == null : this.getPlatformType().equals(other.getPlatformType()))
            && (this.getBailunAccount() == null ? other.getBailunAccount() == null : this.getBailunAccount().equals(other.getBailunAccount()))
            && (this.getBailunAccountId() == null ? other.getBailunAccountId() == null : this.getBailunAccountId().equals(other.getBailunAccountId()))
            && (this.getWebsite() == null ? other.getWebsite() == null : this.getWebsite().equals(other.getWebsite()))
            && (this.getOriginOrderId() == null ? other.getOriginOrderId() == null : this.getOriginOrderId().equals(other.getOriginOrderId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getPlatformSku() == null ? other.getPlatformSku() == null : this.getPlatformSku().equals(other.getPlatformSku()))
            && (this.getAmountRefund() == null ? other.getAmountRefund() == null : this.getAmountRefund().equals(other.getAmountRefund()))
            && (this.getOrderCurrency() == null ? other.getOrderCurrency() == null : this.getOrderCurrency().equals(other.getOrderCurrency()))
            && (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime()))
            && (this.getBailunSkuQuantityRefund() == null ? other.getBailunSkuQuantityRefund() == null : this.getBailunSkuQuantityRefund().equals(other.getBailunSkuQuantityRefund()))
            && (this.getBailunSkuUnitPrice() == null ? other.getBailunSkuUnitPrice() == null : this.getBailunSkuUnitPrice().equals(other.getBailunSkuUnitPrice()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getLinked() == null ? other.getLinked() == null : this.getLinked().equals(other.getLinked()))
            && (this.getAmountRefundRmb() == null ? other.getAmountRefundRmb() == null : this.getAmountRefundRmb().equals(other.getAmountRefundRmb()))
            && (this.getCrmId() == null ? other.getCrmId() == null : this.getCrmId().equals(other.getCrmId()))
            && (this.getAmountRefundUsd() == null ? other.getAmountRefundUsd() == null : this.getAmountRefundUsd().equals(other.getAmountRefundUsd()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getOrderTotalAmount() == null ? other.getOrderTotalAmount() == null : this.getOrderTotalAmount().equals(other.getOrderTotalAmount()))
            && (this.getUsdOrderTotalAmount() == null ? other.getUsdOrderTotalAmount() == null : this.getUsdOrderTotalAmount().equals(other.getUsdOrderTotalAmount()))
            && (this.getProductSaleAmount() == null ? other.getProductSaleAmount() == null : this.getProductSaleAmount().equals(other.getProductSaleAmount()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getIsFreeze() == null ? other.getIsFreeze() == null : this.getIsFreeze().equals(other.getIsFreeze()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getShippingStatus() == null ? other.getShippingStatus() == null : this.getShippingStatus().equals(other.getShippingStatus()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_crm_refund
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlatformType() == null) ? 0 : getPlatformType().hashCode());
        result = prime * result + ((getBailunAccount() == null) ? 0 : getBailunAccount().hashCode());
        result = prime * result + ((getBailunAccountId() == null) ? 0 : getBailunAccountId().hashCode());
        result = prime * result + ((getWebsite() == null) ? 0 : getWebsite().hashCode());
        result = prime * result + ((getOriginOrderId() == null) ? 0 : getOriginOrderId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getPlatformSku() == null) ? 0 : getPlatformSku().hashCode());
        result = prime * result + ((getAmountRefund() == null) ? 0 : getAmountRefund().hashCode());
        result = prime * result + ((getOrderCurrency() == null) ? 0 : getOrderCurrency().hashCode());
        result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode());
        result = prime * result + ((getBailunSkuQuantityRefund() == null) ? 0 : getBailunSkuQuantityRefund().hashCode());
        result = prime * result + ((getBailunSkuUnitPrice() == null) ? 0 : getBailunSkuUnitPrice().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getLinked() == null) ? 0 : getLinked().hashCode());
        result = prime * result + ((getAmountRefundRmb() == null) ? 0 : getAmountRefundRmb().hashCode());
        result = prime * result + ((getCrmId() == null) ? 0 : getCrmId().hashCode());
        result = prime * result + ((getAmountRefundUsd() == null) ? 0 : getAmountRefundUsd().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getOrderTotalAmount() == null) ? 0 : getOrderTotalAmount().hashCode());
        result = prime * result + ((getUsdOrderTotalAmount() == null) ? 0 : getUsdOrderTotalAmount().hashCode());
        result = prime * result + ((getProductSaleAmount() == null) ? 0 : getProductSaleAmount().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getIsFreeze() == null) ? 0 : getIsFreeze().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getShippingStatus() == null) ? 0 : getShippingStatus().hashCode());
        return result;
    }
}