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

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

import com.baomidou.mybatisplus.annotations.TableField;
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_info")
public class WarehousePositionInfo extends BaseModel<WarehousePositionInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 仓库id
     */
    private String baseId;
    /**
     * 仓位编号
     */
    private String binNumber;
    /**
     * 最大储存量（吨）
     */
    private Float maxStorage;
    /**
     * 现有储存量（吨）
     */
    private Float nowStorage;
    /**
     * 备注
     */
    private String remark;
    /**
     * 详细储量
     */
    @TableField(exist = false)
    private String detailStorage;



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

}
