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 Gdc
 * @since 2021-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cost_management_info")
public class CostManagementInfo extends BaseModel<CostManagementInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 库点id
     */
    private String warehouseId;
    /**
     * 库点
     */
    private String warehouseName;
    /**
     * 货名key
     */
    private String goodsNameKey;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 存储（吨）
     */
    private Double storage;
    /**
     * 价值
     */
    private Float value;
    /**
     * 加权成本
     */
    private Double cost;
    /**
     * 状态标识
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 状态英文
     */
    private String statusEn;
    /**
     * 手动修改标识
     */
    private String flag;
    /**
     * 仓库类型  常用1  临时2
     */
    private String warehouseType;


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

}
