From d2c0bccd2e6dde4cf2a614a67bbf0ed45e2bcbaf Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 29 十一月 2024 13:59:22 +0800
Subject: [PATCH] # 213

---
 src/main/java/com/zy/asrs/entity/WrkMast.java |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/WrkMast.java b/src/main/java/com/zy/asrs/entity/WrkMast.java
index aaef397..f609b83 100644
--- a/src/main/java/com/zy/asrs/entity/WrkMast.java
+++ b/src/main/java/com/zy/asrs/entity/WrkMast.java
@@ -515,4 +515,61 @@
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
     }
 
+    public Integer getIoTypeMes$(){
+        if (this.ioType != 101){
+            return 3;
+        } else {
+            return 1;
+        }
+    }
+
+    public Integer getStaNoSign(){
+        if (this.staNo == null){
+            return 0;
+        } else {
+            switch (this.staNo){
+                case 310:
+                    return 2;
+                case 312:
+                    return 1;
+                case 126:
+                    return 2;
+                case 131:
+                    return 1;
+            }
+        }
+        return 0;
+    }
+
+    public boolean booleanStaNoSign(){
+        if (this.staNo == null){
+            return false;
+        } else {
+            switch (this.staNo){
+                case 310:
+                case 312:
+                case 126:
+                case 131:
+                    return true;
+            }
+        }
+        return false;
+    }
+
+    public Integer getStaNoBying(){
+        if (this.staNo == null){
+            return 0;
+        } else {
+            switch (this.staNo){
+                case 310:
+                case 312:
+                    return 212;
+                case 126:
+                case 131:
+                    return 119;
+            }
+        }
+        return 0;
+    }
+
 }

--
Gitblit v1.9.1