package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_order_commisson.commisson_minimum
     *
     * @mbg.generated
     */
    private BigDecimal commissonMinimum;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_order_commisson.commisson_rate
     *
     * @mbg.generated
     */
    private BigDecimal commissonRate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_order_commisson.total_sales
     *
     * @mbg.generated
     */
    private BigDecimal totalSales;

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_order_commisson
     *
     * @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(", platform=").append(platform);
        sb.append(", website=").append(website);
        sb.append(", bailunCategoryId=").append(bailunCategoryId);
        sb.append(", bailunCategoryName=").append(bailunCategoryName);
        sb.append(", commissonMinimum=").append(commissonMinimum);
        sb.append(", commissonRate=").append(commissonRate);
        sb.append(", totalSales=").append(totalSales);
        sb.append(", type=").append(type);
        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_order_commisson
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseOrderCommisson other = (DcBaseOrderCommisson) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlatform() == null ? other.getPlatform() == null : this.getPlatform().equals(other.getPlatform()))
            && (this.getWebsite() == null ? other.getWebsite() == null : this.getWebsite().equals(other.getWebsite()))
            && (this.getBailunCategoryId() == null ? other.getBailunCategoryId() == null : this.getBailunCategoryId().equals(other.getBailunCategoryId()))
            && (this.getBailunCategoryName() == null ? other.getBailunCategoryName() == null : this.getBailunCategoryName().equals(other.getBailunCategoryName()))
            && (this.getCommissonMinimum() == null ? other.getCommissonMinimum() == null : this.getCommissonMinimum().equals(other.getCommissonMinimum()))
            && (this.getCommissonRate() == null ? other.getCommissonRate() == null : this.getCommissonRate().equals(other.getCommissonRate()))
            && (this.getTotalSales() == null ? other.getTotalSales() == null : this.getTotalSales().equals(other.getTotalSales()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (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_order_commisson
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
        result = prime * result + ((getWebsite() == null) ? 0 : getWebsite().hashCode());
        result = prime * result + ((getBailunCategoryId() == null) ? 0 : getBailunCategoryId().hashCode());
        result = prime * result + ((getBailunCategoryName() == null) ? 0 : getBailunCategoryName().hashCode());
        result = prime * result + ((getCommissonMinimum() == null) ? 0 : getCommissonMinimum().hashCode());
        result = prime * result + ((getCommissonRate() == null) ? 0 : getCommissonRate().hashCode());
        result = prime * result + ((getTotalSales() == null) ? 0 : getTotalSales().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }
}