From 22f68ac556cba08992a0e00fb849c101176bee12 Mon Sep 17 00:00:00 2001
From: 18516761980 <tqsxp@163.com>
Date: 星期三, 15 二月 2023 14:30:38 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/ints/entity/Prdt.java |   43 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/src/main/java/com/zy/ints/entity/Prdt.java b/src/main/java/com/zy/ints/entity/Prdt.java
index 5f65135..6c3d851 100644
--- a/src/main/java/com/zy/ints/entity/Prdt.java
+++ b/src/main/java/com/zy/ints/entity/Prdt.java
@@ -1,16 +1,17 @@
 package com.zy.ints.entity;
 
-import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
+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")
+@TableName("PRDT")
 public class Prdt implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -18,44 +19,50 @@
     /**
      * 鍝佸彿
      */
-    @ApiModelProperty(value= "鍝佸彿")
+    @ApiModelProperty(value = "鍝佸彿")
     @TableId(value = "prd_no", type = IdType.INPUT)
-    @TableField("prd_no")
+    @TableField("PRD_NO")
     private String prdNo;
 
     /**
      * 鍝佸悕
      */
-    @ApiModelProperty(value= "鍝佸悕")
+    @ApiModelProperty(value = "鍝佸悕")
+    @TableField("NAME")
     private String name;
 
     /**
      * 鍗曚綅
      */
-    @ApiModelProperty(value= "鍗曚綅")
+    @ApiModelProperty(value = "鍗曚綅")
+    @TableField("UT")
     private String ut;
 
     /**
      * 瑙勬牸
      */
-    @ApiModelProperty(value= "瑙勬牸")
+    @ApiModelProperty(value = "瑙勬牸")
+    @TableField("SPC")
     private String spc;
 
     /**
      * 绫诲瀷
      */
-    @ApiModelProperty(value= "绫诲瀷")
+    @ApiModelProperty(value = "绫诲瀷")
+    @TableField("TYPE")
     private Integer type;
 
     /**
      * 鐘舵��
      */
-    @ApiModelProperty(value= "鐘舵��")
+    @ApiModelProperty(value = "鐘舵��")
+    @TableField("STATUS")
     private Integer status;
 
-    public Prdt() {}
+    public Prdt() {
+    }
 
-    public Prdt(String prdNo,String name,String ut,String spc,Integer type,Integer status) {
+    public Prdt(String prdNo, String name, String ut, String spc, Integer type, Integer status) {
         this.prdNo = prdNo;
         this.name = name;
         this.ut = ut;
@@ -74,5 +81,19 @@
 //            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);
+        }
+    }
+
 
 }

--
Gitblit v1.9.1