From 3a38fb7d7931ce6d481116887b87bfa61ed7cb8c Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期二, 29 四月 2025 11:23:40 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/controller/OpenController.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/OpenController.java b/src/main/java/com/zy/asrs/controller/OpenController.java index a1f22f7..3bd0a08 100644 --- a/src/main/java/com/zy/asrs/controller/OpenController.java +++ b/src/main/java/com/zy/asrs/controller/OpenController.java @@ -372,10 +372,14 @@ .build() .doPost(); JSONObject jsonObject = JSON.parseObject(response); + if (jsonObject.getInteger("code") != 200) { + log.info("鏉$爜锛�" + barcode + "鐢宠WMS澶辫触,response=" + JSON.toJSONString(jsonObject)); + return R.error(); + } JSONObject result = jsonObject.getJSONObject("data"); Integer resultWrkNo = result.getInteger("wrkNo"); - Integer resultStaNo = result.getInteger("staNo"); + Integer resultStaNo = result.getInteger("stnNo"); String resultLocNo = result.getString("locNo"); // 鍒涙柊涓�涓叆搴撳伐浣滄。 @@ -455,7 +459,6 @@ } log.info("鍏ュ簱璇锋眰鍙傛暟=" + JSON.toJSONString(barcode)); log.info("鍏ュ簱璇锋眰杩斿洖鍙傛暟=" + JSON.toJSONString(response)); - return R.error(); + return R.ok(); } - } -- Gitblit v1.9.1