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 ++++++++++++++++++++++-
src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java | 7 +++++--
2 files changed, 27 insertions(+), 3 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 "";
diff --git a/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java b/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
index cbad70a..a298490 100644
--- a/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
+++ b/src/main/java/com/zy/asrs/task/WrkMastStaInItScheduler.java
@@ -41,12 +41,15 @@
//鍏ュ簱鍙�
public static final List<Integer> STA_WORK_IN = new ArrayList<Integer>() {{
- add(1042);add(1105);add(1038);add(1036);add(2037);
+ add(1042);add(1043);add(1104);add(1105);add(1038);add(1036);add(2037);
}};
//鍑哄簱鍙�
public static final List<Integer> STA_WORK_OUT = new ArrayList<Integer>() {{
- add(1007);add(1010);add(1021);add(1024);add(1031);add(2003);add(2009);add(2015);add(2021);add(2027);
+ add(1007);add(1005);add(1010);add(1008);add(1021);add(1019);
+ add(1024);add(1022);add(1031);add(1029);add(2003);add(2001);
+ add(2009);add(2007);add(2015);add(2013);add(2021);add(2019);
+ add(2027);add(2025);
}};
// public static final List<Integer> STA_WORK_CU_CAR_TWO = new ArrayList<Integer>() {{
--
Gitblit v1.9.1