From 0cf26d5f8c8c2c15645443e84566ffec72abfdf1 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 28 四月 2025 14:35:41 +0800
Subject: [PATCH] *

---
 src/main/java/com/zy/asrs/entity/StaDesc.java |   46 +++++++++++++++++++++++++++++-----------------
 1 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/StaDesc.java b/src/main/java/com/zy/asrs/entity/StaDesc.java
index 9c61158..e52ee3a 100644
--- a/src/main/java/com/zy/asrs/entity/StaDesc.java
+++ b/src/main/java/com/zy/asrs/entity/StaDesc.java
@@ -8,6 +8,7 @@
 import com.core.common.SpringUtils;
 import com.zy.asrs.service.BasCrnpService;
 import com.zy.asrs.service.BasDevpService;
+import com.zy.asrs.service.BasWrkIotypeService;
 import com.zy.system.entity.User;
 import com.zy.system.service.UserService;
 import io.swagger.annotations.ApiModelProperty;
@@ -16,7 +17,7 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
-@TableName("asr_sta_desc")
+@TableName("\"SOURCE\".\"asr_sta_desc\"")
 public class StaDesc implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -25,87 +26,88 @@
      * 璺緞ID
      */
     @ApiModelProperty(value= "璺緞ID")
-    @TableId(value = "type_id", type = IdType.AUTO)
-    @TableField("type_id")
+    @TableId(value = "TYPE_ID", type = IdType.AUTO)
+    @TableField("TYPE_ID")
     private Long typeId;
 
     /**
      * 鍏ュ嚭搴撶被鍨�
      */
     @ApiModelProperty(value= "鍏ュ嚭搴撶被鍨�")
-    @TableId(value = "type_no", type = IdType.INPUT)
-    @TableField("type_no")
+    @TableId(value = "TYPE_NO", type = IdType.INPUT)
+    @TableField("TYPE_NO")
     private Integer typeNo;
 
     /**
      * 浣滀笟绫诲瀷
      */
     @ApiModelProperty(value= "浣滀笟绫诲瀷")
-    @TableField("type_desc")
+    @TableField("TYPE_DESC")
     private String typeDesc;
 
     /**
      * 浣滀笟绔欑偣
      */
     @ApiModelProperty(value= "浣滀笟绔欑偣")
-    @TableId(value = "stn_no", type = IdType.INPUT)
-    @TableField("stn_no")
+    @TableId(value = "STN_NO", type = IdType.INPUT)
+    @TableField("STN_NO")
     private Integer stnNo;
 
     /**
      * 绔欑偣鍚嶇О
      */
     @ApiModelProperty(value= "绔欑偣鍚嶇О")
-    @TableField("stn_desc")
+    @TableField("STN_DESC")
     private String stnDesc;
 
     /**
      * 鍫嗗灈鏈哄彿
      */
     @ApiModelProperty(value= "鍫嗗灈鏈哄彿")
-    @TableId(value = "crn_no", type = IdType.INPUT)
-    @TableField("crn_no")
+    @TableId(value = "CRN_NO", type = IdType.INPUT)
+    @TableField("CRN_NO")
     private Integer crnNo;
 
     /**
      * 鍫嗗灈鏈虹珯鐐�
      */
     @ApiModelProperty(value= "鍫嗗灈鏈虹珯鐐�")
-    @TableField("crn_stn")
+    @TableField("CRN_STN")
     private Integer crnStn;
 
     /**
      * 澶囨敞
      */
     @ApiModelProperty(value= "澶囨敞")
+    @TableField("MEMO")
     private String memo;
 
     /**
      * 淇敼浜哄憳
      */
     @ApiModelProperty(value= "淇敼浜哄憳")
-    @TableField("modi_user")
+    @TableField("MODI_USER")
     private Long modiUser;
 
     /**
      * 淇敼鏃堕棿
      */
     @ApiModelProperty(value= "淇敼鏃堕棿")
-    @TableField("modi_time")
+    @TableField("MODI_TIME")
     private Date modiTime;
 
     /**
      * 鍒涘缓鑰�
      */
     @ApiModelProperty(value= "鍒涘缓鑰�")
-    @TableField("appe_user")
+    @TableField("APPE_USER")
     private Long appeUser;
 
     /**
      * 娣诲姞鏃堕棿
      */
     @ApiModelProperty(value= "娣诲姞鏃堕棿")
-    @TableField("appe_time")
+    @TableField("APPE_TIME")
     private Date appeTime;
 
     public StaDesc() {}
@@ -287,5 +289,15 @@
         this.appeTime = appeTime;
     }
 
-
+    public String getTypeNo$() {
+        if (Cools.isEmpty(this.typeNo)){
+            return "";
+        }
+        BasWrkIotypeService basWrkIotypeService = SpringUtils.getBean(BasWrkIotypeService.class);
+        BasWrkIotype basWrkIotype = basWrkIotypeService.selectById(this.typeNo);
+        if (basWrkIotype == null) {
+            return "";
+        }
+        return basWrkIotype.getIoDesc();
+    }
 }

--
Gitblit v1.9.1