package com.bailuntec.domain.entity;

import lombok.Data;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_sales.sevenday_average_sales
     *
     * @mbg.generated
     */
    private BigDecimal sevendayAverageSales;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_sales.fourteenday_average_sales
     *
     * @mbg.generated
     */
    private BigDecimal fourteendayAverageSales;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_sales.thirtyday_average_sales
     *
     * @mbg.generated
     */
    private BigDecimal thirtydayAverageSales;

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_daily_sales.record_date
     *
     * @mbg.generated
     */
    private LocalDate recordDate;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @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(", bailunSkuTitleCn=").append(bailunSkuTitleCn);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", bailunCategoryId=").append(bailunCategoryId);
        sb.append(", onedayTotalSales=").append(onedayTotalSales);
        sb.append(", threedayTotalSales=").append(threedayTotalSales);
        sb.append(", sevendayTotalSales=").append(sevendayTotalSales);
        sb.append(", fourteendayTotalSales=").append(fourteendayTotalSales);
        sb.append(", thirtydayTotalSales=").append(thirtydayTotalSales);
        sb.append(", threedayAverageSales=").append(threedayAverageSales);
        sb.append(", sevendayAverageSales=").append(sevendayAverageSales);
        sb.append(", fourteendayAverageSales=").append(fourteendayAverageSales);
        sb.append(", thirtydayAverageSales=").append(thirtydayAverageSales);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", globalCompanyId=").append(globalCompanyId);
        sb.append(", globalCompanyCode=").append(globalCompanyCode);
        sb.append(", globalCompanyName=").append(globalCompanyName);
        sb.append(", recordDate=").append(recordDate);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcDailySales other = (DcDailySales) 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.getBailunSkuTitleCn() == null ? other.getBailunSkuTitleCn() == null : this.getBailunSkuTitleCn().equals(other.getBailunSkuTitleCn()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getBailunCategoryId() == null ? other.getBailunCategoryId() == null : this.getBailunCategoryId().equals(other.getBailunCategoryId()))
            && (this.getOnedayTotalSales() == null ? other.getOnedayTotalSales() == null : this.getOnedayTotalSales().equals(other.getOnedayTotalSales()))
            && (this.getThreedayTotalSales() == null ? other.getThreedayTotalSales() == null : this.getThreedayTotalSales().equals(other.getThreedayTotalSales()))
            && (this.getSevendayTotalSales() == null ? other.getSevendayTotalSales() == null : this.getSevendayTotalSales().equals(other.getSevendayTotalSales()))
            && (this.getFourteendayTotalSales() == null ? other.getFourteendayTotalSales() == null : this.getFourteendayTotalSales().equals(other.getFourteendayTotalSales()))
            && (this.getThirtydayTotalSales() == null ? other.getThirtydayTotalSales() == null : this.getThirtydayTotalSales().equals(other.getThirtydayTotalSales()))
            && (this.getThreedayAverageSales() == null ? other.getThreedayAverageSales() == null : this.getThreedayAverageSales().equals(other.getThreedayAverageSales()))
            && (this.getSevendayAverageSales() == null ? other.getSevendayAverageSales() == null : this.getSevendayAverageSales().equals(other.getSevendayAverageSales()))
            && (this.getFourteendayAverageSales() == null ? other.getFourteendayAverageSales() == null : this.getFourteendayAverageSales().equals(other.getFourteendayAverageSales()))
            && (this.getThirtydayAverageSales() == null ? other.getThirtydayAverageSales() == null : this.getThirtydayAverageSales().equals(other.getThirtydayAverageSales()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getGlobalCompanyId() == null ? other.getGlobalCompanyId() == null : this.getGlobalCompanyId().equals(other.getGlobalCompanyId()))
            && (this.getGlobalCompanyCode() == null ? other.getGlobalCompanyCode() == null : this.getGlobalCompanyCode().equals(other.getGlobalCompanyCode()))
            && (this.getGlobalCompanyName() == null ? other.getGlobalCompanyName() == null : this.getGlobalCompanyName().equals(other.getGlobalCompanyName()))
            && (this.getRecordDate() == null ? other.getRecordDate() == null : this.getRecordDate().equals(other.getRecordDate()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_daily_sales
     *
     * @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 + ((getBailunSkuTitleCn() == null) ? 0 : getBailunSkuTitleCn().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getBailunCategoryId() == null) ? 0 : getBailunCategoryId().hashCode());
        result = prime * result + ((getOnedayTotalSales() == null) ? 0 : getOnedayTotalSales().hashCode());
        result = prime * result + ((getThreedayTotalSales() == null) ? 0 : getThreedayTotalSales().hashCode());
        result = prime * result + ((getSevendayTotalSales() == null) ? 0 : getSevendayTotalSales().hashCode());
        result = prime * result + ((getFourteendayTotalSales() == null) ? 0 : getFourteendayTotalSales().hashCode());
        result = prime * result + ((getThirtydayTotalSales() == null) ? 0 : getThirtydayTotalSales().hashCode());
        result = prime * result + ((getThreedayAverageSales() == null) ? 0 : getThreedayAverageSales().hashCode());
        result = prime * result + ((getSevendayAverageSales() == null) ? 0 : getSevendayAverageSales().hashCode());
        result = prime * result + ((getFourteendayAverageSales() == null) ? 0 : getFourteendayAverageSales().hashCode());
        result = prime * result + ((getThirtydayAverageSales() == null) ? 0 : getThirtydayAverageSales().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getGlobalCompanyId() == null) ? 0 : getGlobalCompanyId().hashCode());
        result = prime * result + ((getGlobalCompanyCode() == null) ? 0 : getGlobalCompanyCode().hashCode());
        result = prime * result + ((getGlobalCompanyName() == null) ? 0 : getGlobalCompanyName().hashCode());
        result = prime * result + ((getRecordDate() == null) ? 0 : getRecordDate().hashCode());
        return result;
    }
}