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

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

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

/**
 * <p>
 * 记录仓库仓位储存信息
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("warehouse_position_storage_info")
public class WarehousePositionStorageInfo extends BaseModel<WarehousePositionStorageInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 仓位编号id
     */
    private String positionId;
    /**
     * 仓位编号
     */
    private String binNumber;
    /**
     * 货名key
     */
    private String goodsNameKey;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 储存量（吨）
     */
    private Double storage;
    /**
     * 可用储存量（吨）
     */
    private Double useStorage;


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

}
