package com.sw.mes.yb.seed.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author wupeng
 * @Description 库存表warehouse_inventory
 * @Date 11:57 2023/7/31
 * @Param
 * @return
 **/
@Data
@ApiModel(value = "库存表Dto")
public class WarehouseInventoryDto {

    private Long id;
    @ApiModelProperty(value = "物料主数据ID", required = true)
    private Long materialModelId;
    @ApiModelProperty(value = "物料主数据料号")
    private String materialModelCode;
    @ApiModelProperty(value = "物料主数据名称")
    private String materialModelName;
    @ApiModelProperty(value = "物料主数据类型")
    private String materialTypeName;
    @ApiModelProperty(value = "物料主数据类别")
    private String materialCategoryName;
    @ApiModelProperty(value = "物料等级")
    private String materialLevel;
    @ApiModelProperty(value = "直径")
    private String diameter;
    @ApiModelProperty(value = "唯一码")
    private String uniqueCode;
    @ApiModelProperty(value = "批次号")
    private String batchNo;
    @ApiModelProperty(value = "物料主数据供应商")
    private String supplier;
    @ApiModelProperty(value = "物料主数据规格")
    private String specification;
    @ApiModelProperty(value = "物料主数据图号")
    private String materialTh;
    @ApiModelProperty(value = "库存数量")
    private BigDecimal quantity;
    @ApiModelProperty(value = "锁定库存数量")
    private BigDecimal lockQuantity;
    @ApiModelProperty(value = "物料单位")
    private String unitName;
    @ApiModelProperty(value = "库位ID")
    private Long warehouseId;
    @ApiModelProperty(value = "库位名称")
    private String warehouseName;
    @ApiModelProperty(value = "入库人ID")
    private Integer receiveUserId;
    @ApiModelProperty(value = "入库人名称")
    private String receiveUserName;
    @ApiModelProperty(value = "接受时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;
    @ApiModelProperty(value = "物料型号")
    private String materialXh;
    @ApiModelProperty(value = "停留时间")
    private Integer residenceTime;
    @ApiModelProperty(value = "停留时间单位")
    private String timeUnit;
    @ApiModelProperty(value = "安全库存")
    private String safetyStock;
    @ApiModelProperty("逻辑删除")
    private Boolean del = false;
}