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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 库存
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sod")
@ApiModel(value="Sod对象", description="库存")
public class Sod implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    @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("pcde")
    @JsonProperty("pcde")
    private String pcde;

    @ApiModelProperty("项目定义号")
    @TableField("erpid")
    @JsonProperty("erpid")
    private String erpid;

    @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;

    @ApiModelProperty("备注")
    @TableField("mrk")
    @JsonProperty("mrk")
    private String mrk;

    @ApiModelProperty("物料清单明细")
    @TableField("rdid")
    @JsonProperty("rdid")
    private Integer rdid;

    @ApiModelProperty("单价")
    @TableField("prc")
    @JsonProperty("prc")
    private Float prc;

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

    @ApiModelProperty("dw.mrk单位编码")
    @TableField("dmrk")
    @JsonProperty("dmrk")
    private String dmrk;

    @ApiModelProperty("库存类型")
    @TableField("wtpe")
    @JsonProperty("wtpe")
    private String wtpe;

    @ApiModelProperty("是否已上传")
    @TableField("up")
    @JsonProperty("up")
    private String up;

    @ApiModelProperty("所属仓库")
    @TableField("wh")
    @JsonProperty("wh")
    private String wh;

    @ApiModelProperty("供应商")
    @TableField("gys")
    @JsonProperty("gys")
    private String gys;

    @TableField("hcde")
    @JsonProperty("hcde")
    private String hcde;

    @TableField("del")
    @JsonProperty("del")
    private Integer del;

    @TableField("drsn")
    @JsonProperty("drsn")
    private String drsn;

    @ApiModelProperty("初始数量")
    @TableField("amt")
    @JsonProperty("amt")
    private BigDecimal amt;

    @ApiModelProperty("移库的sod.id")
    @TableField("sid")
    @JsonProperty("sid")
    private Integer sid;

    @ApiModelProperty("导入时间")
    @TableField("intme")
    @JsonProperty("intme")
    private String intme;

    @ApiModelProperty("状态")
    @TableField("ste")
    @JsonProperty("ste")
    private Integer ste;

    @ApiModelProperty("声光标签编码")
    @TableField("vlid")
    @JsonProperty("vlid")
    private String vlid;

    @ApiModelProperty("ERP出库凭证")
    @TableField("oprf")
    @JsonProperty("oprf")
    private String oprf;

    @ApiModelProperty("实际入库时间")
    @TableField("itme")
    @JsonProperty("itme")
    private String itme;

    @ApiModelProperty("是否提醒有出库凭证；1提醒，0不提醒")
    @TableField("trc")
    @JsonProperty("trc")
    private Integer trc;

    @TableField("lck")
    @JsonProperty("lck")
    private Integer lck;

    @TableField("lckrsn")
    @JsonProperty("lckrsn")
    private String lckrsn;

    @ApiModelProperty("生产日期")
    @TableField("mtme")
    @JsonProperty("mtme")
    private String mtme;

    @ApiModelProperty("保质期截止时间")
    @TableField("bzqz")
    @JsonProperty("bzqz")
    private String bzqz;

    @ApiModelProperty("一次封样号")
    @TableField("fycde_1")
    @JsonProperty("fycde_1")
    private String fycde1;

    @ApiModelProperty("二次封样号")
    @TableField("fycde_2")
    @JsonProperty("fycde_2")
    private String fycde2;

    @ApiModelProperty("更新时间")
    @TableField("uptim")
    @JsonProperty("uptim")
    private String uptim;

    @ApiModelProperty("查询状态 0=正常数据, 1=未扫到, 2=误扫")
    @TableField(exist = false)
    private String status;
}