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-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("warehouse_inventory_count_info")
public class WarehouseInventoryCountInfo extends BaseModel<WarehouseInventoryCountInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 仓库id
     */
    private String baseId;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 仓位编号id
     */
    private String positionId;
    /**
     * 仓位编号
     */
    private String binNumber;
    /**
     * 经办人key
     */
    private String qualityInspectorKey;
    /**
     * 经办人
     */
    private String qualityInspector;
    /**
     * 货名key
     */
    private String goodsNameKey;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 当期累计入库量（吨）
     */
    private Float cumulativeStockIn;
    /**
     * 当期累计出库量（吨）
     */
    private Float cumulativeStockOut;
    /**
     * 应余库存（吨）
     */
    private Float surplusInventory;
    /**
     * 实际库存（吨）
     */
    private Float physicalInventory;
    /**
     * 损耗量（吨）
     */
    private Float loss;
    /**
     * 库存比例
     */
    private String inventoryRatio;

    @TableField(exist = false)
    private WarehousePositionStorageInfo warehousePositionStorageInfo;

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

}
