| package com.zy.ints.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
|   | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("ERP_PRDT") | 
| public class Prdt 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; | 
|   | 
|     /** | 
|      * 备用字段1 | 
|      */ | 
|     @ApiModelProperty(value = "备用字段1") | 
|     private String temp1; | 
|   | 
|     /** | 
|      * 备用字段2 | 
|      */ | 
|     @ApiModelProperty(value = "备用字段2") | 
|     private String temp2; | 
|   | 
|     /** | 
|      * 备用字段3 | 
|      */ | 
|     @ApiModelProperty(value = "备用字段3") | 
|     private String temp3; | 
|   | 
|     public Prdt() { | 
|     } | 
|   | 
|     public Prdt(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); | 
|         } | 
|     } | 
|   | 
|   | 
| } |