package com.bailuntec.domain.entity;

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_aims_transfer_warehouse_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(", warehouseCode=").append(warehouseCode);
        sb.append(", bailunSkuWarehouseCode=").append(bailunSkuWarehouseCode);
        sb.append(", date=").append(date);
        sb.append(", dateStr=").append(dateStr);
        sb.append(", sales=").append(sales);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_aims_transfer_warehouse_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;
        }
        DcAimsTransferWarehouseSales other = (DcAimsTransferWarehouseSales) 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.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getDateStr() == null ? other.getDateStr() == null : this.getDateStr().equals(other.getDateStr()))
            && (this.getSales() == null ? other.getSales() == null : this.getSales().equals(other.getSales()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_aims_transfer_warehouse_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 + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getBailunSkuWarehouseCode() == null) ? 0 : getBailunSkuWarehouseCode().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getDateStr() == null) ? 0 : getDateStr().hashCode());
        result = prime * result + ((getSales() == null) ? 0 : getSales().hashCode());
        return result;
    }
}