From c7db2ed32c074fb311bc3209313978d2df86c0c4 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 21 五月 2025 09:59:15 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index f852e26..293b2a6 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -197,7 +197,16 @@
                                     .doPost();
                             JSONObject jsonObject = JSON.parseObject(response);
                             redisUtil.set(RedisKeyType.IN_TASK_LOCK.key, "lock", 5);
-                            if (jsonObject.getInteger("code") != 200) {
+                            if (jsonObject.getInteger("code") == 200) {
+
+                            } else if (jsonObject.getInteger("code") == 500) {
+                                log.info("鏉$爜锛�" + barcode + "鐢宠WMS澶辫触,response=" + JSON.toJSONString(jsonObject));
+
+                                staProtocol.setWorkNo(9997);
+                                staProtocol.setStaNo(inSta.getBackSta().shortValue());
+                                MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol));
+                                continue;
+                            }else {
                                 log.info("鏉$爜锛�" + barcode + "鐢宠WMS澶辫触,response=" + JSON.toJSONString(jsonObject));
                                 continue;
                             }

--
Gitblit v1.9.1