From 44522f08bff3abc3c34c77215eacd2cb3a484a0d Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期三, 29 四月 2026 14:07:51 +0800
Subject: [PATCH] 双伸出库优先筛选浅库位的任务进行出库,浅库位任务不足二十个则补上深库位出库的任务

---
 src/main/java/com/zy/integration/iot/biz/impl/IotInstructionServiceImpl.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/integration/iot/biz/impl/IotInstructionServiceImpl.java b/src/main/java/com/zy/integration/iot/biz/impl/IotInstructionServiceImpl.java
index 2c88fba..1e7f83c 100644
--- a/src/main/java/com/zy/integration/iot/biz/impl/IotInstructionServiceImpl.java
+++ b/src/main/java/com/zy/integration/iot/biz/impl/IotInstructionServiceImpl.java
@@ -124,7 +124,7 @@
 
         String remoteDestination = extractFirstDestination(message.getDestinationLocationIds());
 //        Integer stationId = Cools.isEmpty(remoteDestination) ? null : iotProperties.getPickStationMappings().get(remoteDestination);
-        Integer stationId =311;
+        Integer stationId =602;
         if (stationId == null) {
             return updateAsFailure(record, IotConstants.ERROR_CODE_STATION_MAPPING, "鏈壘鍒扮洰鏍囧嚭搴撳彛鏄犲皠");
         }
@@ -133,7 +133,8 @@
         param.setPalletId(message.getContainerId());
         param.setOrderId(resolveReferenceId(message));
         param.setStationId(String.valueOf(stationId));
-        param.setSeq(1);
+        param.setBatchSeq("amazon"+new Date().getTime());
+        param.setSeq(0);
         R result = externalTaskFacadeService.createOutboundTask(param, true);
         if (result == null || !Objects.equals(result.get("code"), 200)) {
             return updateAsFailure(record, null, resolveResultMessage(result, "鎺ユ敹鎷h揣鎸囦护澶辫触"));

--
Gitblit v1.9.1