package com.bailuntec.domain.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;

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

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

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

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

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

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

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

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


    private LocalDate weekDate;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_week_coefficient
     *
     * @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(", bailunSkuWarehouseCode=").append(bailunSkuWarehouseCode);
        sb.append(", week=").append(week);
        sb.append(", coefficient=").append(coefficient);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", formula=").append(formula);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_week_coefficient
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseWeekCoefficient other = (DcBaseWeekCoefficient) 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.getBailunSkuWarehouseCode() == null ? other.getBailunSkuWarehouseCode() == null : this.getBailunSkuWarehouseCode().equals(other.getBailunSkuWarehouseCode()))
            && (this.getWeek() == null ? other.getWeek() == null : this.getWeek().equals(other.getWeek()))
            && (this.getCoefficient() == null ? other.getCoefficient() == null : this.getCoefficient().equals(other.getCoefficient()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getFormula() == null ? other.getFormula() == null : this.getFormula().equals(other.getFormula()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_week_coefficient
     *
     * @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 + ((getBailunSkuWarehouseCode() == null) ? 0 : getBailunSkuWarehouseCode().hashCode());
        result = prime * result + ((getWeek() == null) ? 0 : getWeek().hashCode());
        result = prime * result + ((getCoefficient() == null) ? 0 : getCoefficient().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getFormula() == null) ? 0 : getFormula().hashCode());
        return result;
    }
}
