From 792ac2d480d61cf3922c16455b91393e41177182 Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期四, 27 十一月 2025 11:21:16 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/entity/param/ArmOrderAssignmentParam.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/param/ArmOrderAssignmentParam.java b/src/main/java/com/zy/asrs/entity/param/ArmOrderAssignmentParam.java
index b952d93..39ecb52 100644
--- a/src/main/java/com/zy/asrs/entity/param/ArmOrderAssignmentParam.java
+++ b/src/main/java/com/zy/asrs/entity/param/ArmOrderAssignmentParam.java
@@ -44,9 +44,13 @@
public SKUInfo() {};
public SKUInfo(BasArmMast basArmMast, OrderDetlValueResultUtil orderDetlValueResultUtil){
- id = basArmMast.getSku();
+ id = basArmMast.getMatnr();
length = orderDetlValueResultUtil.getLength();
width = orderDetlValueResultUtil.getWidth();
+ if (length<width){
+ width = orderDetlValueResultUtil.getLength();
+ length = orderDetlValueResultUtil.getWidth();
+ }
weight = orderDetlValueResultUtil.getWeight();
height = orderDetlValueResultUtil.getHeight();
}
@@ -55,15 +59,15 @@
public OrderItem() {};
public OrderItem(BasArmMast basArmMast, OrderDetlValueResultUtil orderDetlValueResultUtil) {
target_num = orderDetlValueResultUtil.getAnfme().intValue();
- from = basArmMast.getSortingLine().toString();
- to = basArmMast.getStaNo().toString();
+ from = String.valueOf((basArmMast.getSortingLine()+1)%2);
+ to = String.valueOf((basArmMast.getSortingLine()+1)%2+2);
sku_info = new SKUInfo(basArmMast,orderDetlValueResultUtil);
};
}
public ArmOrderAssignmentParam() {}
public ArmOrderAssignmentParam(BasArmMast basArmMast, OrderDetlValueResultUtil orderDetlValueResultUtil) {
- order_id = basArmMast.getSku()+sign_arm_sku+basArmMast.getOrderNo()+sign_arm_order+String.valueOf(basArmMast.getSortingLine());
+ order_id = basArmMast.getMatnr()+sign_arm_sku+basArmMast.getBindingTags()+sign_arm_sku+basArmMast.getOrderNo()+sign_arm_order+(basArmMast.getSortingLine()+1)%2;
List<OrderItem> orderItemArrayList= new ArrayList<>();
OrderItem orderItem = new OrderItem(basArmMast,orderDetlValueResultUtil);
orderItemArrayList.add(orderItem);
--
Gitblit v1.9.1