From 319e3a08d77530ac40dcbdd2c3191490df630348 Mon Sep 17 00:00:00 2001
From: zhangchao <zc857179121@qq.com>
Date: 星期二, 12 十一月 2024 11:04:29 +0800
Subject: [PATCH] 添加出库单据

---
 src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java b/src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java
index 13e750a..5fcea45 100644
--- a/src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java
+++ b/src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java
@@ -82,7 +82,7 @@
     private int doHttpRequest(Object requestParam, String namespace, String url, String path, String appkey, String ip) {
         String response = "";
         boolean success = false;
-        log.error(JSONObject.toJSONString(requestParam));
+        log.info(JSONObject.toJSONString(requestParam));
         try {
             response = new HttpHandler.Builder()
                     .setUri(url)
@@ -90,14 +90,14 @@
                     .setJson(JSONObject.toJSONString(requestParam))
                     .build()
                     .doPost();
+            log.info("涓婃姤ERP鍑哄簱鍗曟嵁璇锋眰杩斿洖鎶ユ枃锛歿}", response);
             JSONObject jsonObject = JSON.parseObject(response);
-
             if (Cools.isEmpty(jsonObject.get("ErrorCode"))) {
                 throw new CoolException(jsonObject.get("ErrorMsg").toString());
             }
 
             int code = Integer.parseInt(jsonObject.get("ErrorCode").toString());
-            if (code != 0) {
+            if (code == 0) {
                 throw new CoolException(jsonObject.get("ErrorMsg").toString());
             }
             success = true;

--
Gitblit v1.9.1