From 9c98d630866b80627ae21ca539a8c3776baa7e73 Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期一, 09 十二月 2024 10:10:35 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/entity/WrkMast.java | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 100 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/WrkMast.java b/src/main/java/com/zy/asrs/entity/WrkMast.java
index 30bdbc0..f8df8f5 100644
--- a/src/main/java/com/zy/asrs/entity/WrkMast.java
+++ b/src/main/java/com/zy/asrs/entity/WrkMast.java
@@ -5,6 +5,7 @@
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zy.asrs.service.*;
+import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import com.core.common.Cools;
@@ -67,7 +68,7 @@
/**
- * 寰愬伐姹変簯鎷嗗灈鏍囪 0: 鏈媶 1: 宸叉媶
+ * 寰愬伐姹変簯鎷嗗灈鏍囪 0: 鍒濆 1銆佹湭鎷嗗凡涓婃姤 2: 宸叉媶 3:宸插鐞嗗彲涓嬩竴姝ワ紙杞巻鍙叉。锛�
*/
@ApiModelProperty(value= "")
@TableField("sheet_no")
@@ -325,6 +326,13 @@
@TableField("take_none")
private String takeNone;
+ /**
+ * 浼寸敓宸ヤ綔鍙�
+ */
+ @ApiModelProperty(value= "浼寸敓宸ヤ綔鍙�")
+ @TableField("work_no_other")
+ private Integer workNoOther;
+
public WrkMast() {}
public String getYmd$(){
@@ -499,6 +507,97 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
}
+ public String getSheetNo$(){
+ if (null == this.sheetNo){ return "鏈煡"; }
+ switch (this.sheetNo){
+ case "0":
+ return "榛樿";
+ case "1":
+ return "鏈烘鑷傛姄鍙栦腑";
+ case "2":
+ return "瀹屾垚";
+// return "鎶撳彇瀹屾垚";
+ case "3":
+ return "浠诲姟瀹屾垚";
+ case "4":
+ return "鏈烘鑷傛姄鍙栦腑";
+ case "5":
+ return "鐮佸灈瀹屾垚";
+ default:
+ return this.sheetNo;
+ }
+ }
+
+ public void sync(Object source) {
+ Synchro.Copy(source, this);
+ }
+
+
+ public Integer getStaNoSign(){
+ if (this.staNo == null){
+ return 0;
+ } else {
+ switch (this.staNo){
+ case 310:
+ return 1;
+ case 312:
+ return 2;
+ case 126:
+ return 1;
+ case 131:
+ return 2;
+ }
+ }
+ 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;
+ }
+
+ public boolean booleanStaNoSignOther(){
+ if (this.staNo == null){
+ return true;
+ } else {
+ switch (this.staNo){
+ case 144:
+ case 145:
+ case 152:
+ case 153:
+ return false;
+ }
+ }
+ return true;
+ }
+
+
}
--
Gitblit v1.9.1