package com.zg.project.Inventory.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 盘点匹配记录视图对象（带额外统计字段）
 */
@Data
@ApiModel(value = "InventoryMatchScanVO", description = "盘点匹配记录返回VO")
public class InventoryMatchScanVO {

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("设备ID")
    private String deviceId;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("标签ID（货品码）")
    private String pcde;

    @ApiModelProperty("系统入库时间")
    private String tme;

    @ApiModelProperty("盘点类型：0=手动，1=自动")
    private Integer scanType;

    @ApiModelProperty("匹配状态：0=正常, 1=未扫, 2=误扫")
    private String status;

    @ApiModelProperty("创建时间")
    private String createdAt;

    @ApiModelProperty("物料号")
    @TableField("mid")
    @JsonProperty("mid")
    private String mid;

    @ApiModelProperty("物料描述")
    @TableField("des_mat")
    @JsonProperty("des_mat")
    private String desMat;

    @ApiModelProperty("剩余数量")
    @TableField("rmn")
    @JsonProperty("rmn")
    private BigDecimal rmn;

    @ApiModelProperty("单位")
    @TableField("unt")
    @JsonProperty("unt")
    private String unt;

    @ApiModelProperty("项目描述")
    @TableField("des_pro")
    @JsonProperty("des_pro")
    private String desPro;

    @ApiModelProperty("采购订单号")
    @TableField("bnum")
    @JsonProperty("bnum")
    private String bnum;

    @ApiModelProperty("托盘编码")
    @TableField("tcde")
    @JsonProperty("tcde")
    private String tcde;

}
