package com.zy.ints.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
|
@Data
|
@TableName("erp_prdt_bak")
|
public class PrdtBak implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 品号
|
*/
|
@ApiModelProperty(value = "品号")
|
@TableId(value = "prd_no", type = IdType.INPUT)
|
@TableField("prd_no")
|
private String prdNo;
|
|
/**
|
* 品名
|
*/
|
@ApiModelProperty(value = "品名")
|
private String name;
|
|
/**
|
* 单位
|
*/
|
@ApiModelProperty(value = "单位")
|
private String ut;
|
|
/**
|
* 规格
|
*/
|
@ApiModelProperty(value = "规格")
|
private String spc;
|
|
/**
|
* 类型
|
*/
|
@ApiModelProperty(value = "类型")
|
private Integer type;
|
|
/**
|
* 状态
|
*/
|
@ApiModelProperty(value = "状态")
|
private Integer status;
|
|
public PrdtBak() {
|
}
|
|
public PrdtBak(String prdNo, String name, String ut, String spc, Integer type, Integer status) {
|
this.prdNo = prdNo;
|
this.name = name;
|
this.ut = ut;
|
this.spc = spc;
|
this.type = type;
|
this.status = status;
|
}
|
|
// Prdt prdt = new Prdt(
|
// null, // id[非空]
|
// null, // 品号[非空]
|
// null, // 品名[非空]
|
// null, // 单位
|
// null, // 规格
|
// null, // 类型[非空]
|
// null // 状态[非空]
|
// );
|
|
public String getStatus$(){
|
if (null == this.status){ return null; }
|
switch (this.status){
|
case 0:
|
return "0(初始状态)";
|
case 1:
|
return "1(已接收)";
|
case 2:
|
return "2(异常)";
|
default:
|
return String.valueOf(this.status);
|
}
|
}
|
|
|
}
|