From a38d955f816eb64f297cd587b507defd5839892e Mon Sep 17 00:00:00 2001
From: zzgtfwq <zzgtfwq>
Date: 星期二, 09 十二月 2025 15:08:46 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/entity/param/CarryParam.java | 74 +++++++++++++++++++++++++++++++++++++
1 files changed, 74 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/param/CarryParam.java b/src/main/java/com/zy/asrs/entity/param/CarryParam.java
new file mode 100644
index 0000000..e287888
--- /dev/null
+++ b/src/main/java/com/zy/asrs/entity/param/CarryParam.java
@@ -0,0 +1,74 @@
+package com.zy.asrs.entity.param;
+
+import lombok.Data;
+
+@Data
+public class CarryParam {
+ //宸ヤ綔鍙�
+ private String taskNo;
+
+ //鍏ュ嚭搴撶被鍨�
+ private Integer ioType;
+
+ //浼樺厛绾�
+ private Integer taskPriority;
+
+ //瀹瑰櫒缂栫爜
+ private String barcode;
+
+ //璧风偣
+ private String startPoint;
+
+ //鐩爣鐐�
+ private String targetPoint;
+
+ //澶囨敞
+ private String meno;
+
+ public void updateLocNo(){
+ startPoint = getPut(startPoint);
+ targetPoint = getPut(targetPoint);
+ }
+ public void updateIoTyoe(Integer ioTypeOld){
+ switch (ioTypeOld){
+ case 1:
+ this.ioType = 2;
+ break;
+ case 2:
+ this.ioType = 3;
+ break;
+ case 3:
+ this.ioType = 1;
+ break;
+ default:
+ this.ioType = 3;
+ }
+ }
+
+ public String getPut(String point){
+ String[] split = point.split("-");
+ if (split.length == 5){
+// String locNo = String.format("%02d", ) +
+// String.format("%03d", split[3]) +
+// String.format("%02d", split[4]);
+ return split[2]+"0"+split[3]+split[4];
+ } else {
+ return point;
+ }
+ }
+
+ public static String zerofill(String msg, Integer count){
+ if (msg.length() == count){
+ return msg;
+ } else if (msg.length() > count){
+ return msg.substring(0, 16);
+ } else {
+ StringBuilder msgBuilder = new StringBuilder(msg);
+ for (int i = 0; i<count-msg.length(); i++){
+ msgBuilder.insert(0,"0");
+ }
+ return msgBuilder.toString();
+ }
+ }
+
+}
--
Gitblit v1.9.1