From e7f4361235bd763b1f75a4e6a5aa9cf0cbd7797a Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期五, 22 八月 2025 09:03:33 +0800 Subject: [PATCH] #自动生成rgv工作档,站点添加 --- src/main/java/com/zy/asrs/entity/WrkMastSta.java | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkMastSta.java b/src/main/java/com/zy/asrs/entity/WrkMastSta.java index 7093f24..9997290 100644 --- a/src/main/java/com/zy/asrs/entity/WrkMastSta.java +++ b/src/main/java/com/zy/asrs/entity/WrkMastSta.java @@ -135,7 +135,7 @@ this.wrkNo = wrkMast.getWrkNo().longValue(); this.wrkStart = wrkMast.getSourceStaNo(); this.wrkEnd = wrkMast.getStaNo(); - this.staStart = basDevp.getDevNo(); + this.staStart = getStaSta(basDevp.getDevNo()); this.staEnd = getStaEnd(wrkMast.getStaNo()); this.createTime = now; this.updateTime = now; @@ -220,6 +220,27 @@ } } + public Integer getStaSta(Integer souSta) { + switch (souSta) { + case 1043: return 1042; + case 1104: return 1105; + case 1005: return 1007; + case 1008: return 1010; + case 1019: return 1021; + case 1022: return 1024; + case 1029: return 1031; + case 2001: return 2003; + case 2007: return 2009; + case 2013: return 2015; + case 2019: return 2021; + case 2025: return 2027; + default: + return souSta; + } + } + + + public String getType$() { if (Cools.isEmpty(this.type)) { return ""; -- Gitblit v1.9.1