package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Gdc
 * @since 2022-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("warehouse_cost")
public class WarehouseCost extends BaseModel<WarehouseCost> {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 计算日期
     */
    private Date calculateDate;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 数量（吨）
     */
    private Double count;
    /**
     * 成本（元/吨）
     */
    private Double cost;
    /**
     * 价值（元）
     */
    private Double value;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
