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

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inventory_match_scan")
@ApiModel(value = "InventoryMatchScan对象", description = "盘点匹配数据记录表")
public class InventoryMatchScan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long Id;

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

    @ApiModelProperty("设备ID")
    @TableField("task_name")
    private String taskName;

    @ApiModelProperty("扫描到的标签ID（货品码ID）")
    @TableField("pcde")
    private String pcde;

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

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

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

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private String createdAt;
}
