From 8b9b604e379f92dc61fb55e1454b7f1d107428d9 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 16 六月 2025 16:14:17 +0800
Subject: [PATCH] 1

---
 src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java |   78 +++++++++++++++++++-------------------
 1 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java
index 94eb972..6f10a9c 100644
--- a/src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/ToWmsServiceImpl.java
@@ -8,7 +8,7 @@
 import com.zy.asrs.entity.LocMast;
 import com.zy.asrs.entity.TaskWrk;
 import com.zy.asrs.entity.TaskWrkReport;
-import com.zy.asrs.entity.wms.StorageEscalationParam;
+import com.zy.asrs.entity.param.StorageEscalationParam;
 import com.zy.asrs.entity.wms.WmsResult;
 import com.zy.asrs.service.*;
 import com.zy.common.service.CommonService;
@@ -84,44 +84,44 @@
 
     @Override
     public TaskWrk getLocNoFromWms(StorageEscalationParam wmsParam) {
-        String response = "";
-        Boolean success = false;
-        try {
-            response = new HttpHandler.Builder()
-                    .setUri(wmsUrl)
-                    .setPath(inboundTaskApplyPath)
-                    .setJson(JSON.toJSONString(wmsParam))
-                    .build()
-                    .doPost();
-            if (!Cools.isEmpty(response)) {
-                JSONObject jsonObject = JSON.parseObject(response);
-                if (!Cools.isEmpty(jsonObject.get(code)) && jsonObject.get(code).equals(successCode)) {
-                    //鏈変簺涓夋柟wms绯荤粺涓嶈兘鍙婃椂杩斿洖搴撲綅鍙凤紝杩欐椂鍊欏氨闇�瑕�
-                    //ZWmsResult result = JSON.parseObject(jsonObject.get(data).toString(), WmsResult.class);
-                    TaskWrk taskWrk = null;
-                    int i = 1;
-                    while (i < 10) {
-                        taskWrk = taskWrkService.selectByBarcode(wmsParam.getBarcode());
-                        if (taskWrk != null) {
-                            break;
-                        }
-                        try {
-                            i++;
-                            Thread.sleep(500L);
-                        } catch (InterruptedException e) {
-                            throw new RuntimeException(e);
-                        }
-                    }
-                    return taskWrk;
-                }
-            }
-        } catch (IOException e) {
-            e.printStackTrace();
-            log.info("璇锋眰wms鎶ラ敊锛寋}", e.getMessage());
-        } finally {
-            addApiLog("鍏ュ簱浠诲姟璇锋眰鑾峰彇搴撲綅", wmsUrl + inboundTaskApplyPath, JSON.toJSONString(wmsParam), response, success);
-        }
-        return null;
+//        String response = "";
+//        Boolean success = false;
+//        try {
+//            response = new HttpHandler.Builder()
+//                    .setUri(wmsUrl)
+//                    .setPath(inboundTaskApplyPath)
+//                    .setJson(JSON.toJSONString(wmsParam))
+//                    .build()
+//                    .doPost();
+//            if (!Cools.isEmpty(response)) {
+//                JSONObject jsonObject = JSON.parseObject(response);
+//                if (!Cools.isEmpty(jsonObject.get(code)) && jsonObject.get(code).equals(successCode)) {
+//                    //鏈変簺涓夋柟wms绯荤粺涓嶈兘鍙婃椂杩斿洖搴撲綅鍙凤紝杩欐椂鍊欏氨闇�瑕�
+//                    //ZWmsResult result = JSON.parseObject(jsonObject.get(data).toString(), WmsResult.class);
+//                    TaskWrk taskWrk = null;
+//                    int i = 1;
+//                    while (i < 10) {
+//                        taskWrk = taskWrkService.selectByBarcode(wmsParam.getBarcode());
+//                        if (taskWrk != null) {
+//                            break;
+//                        }
+//                        try {
+//                            i++;
+//                            Thread.sleep(500L);
+//                        } catch (InterruptedException e) {
+//                            throw new RuntimeException(e);
+//                        }
+//                    }
+//                    return taskWrk;
+//                }
+//            }
+//        } catch (IOException e) {
+//            e.printStackTrace();
+//            log.info("璇锋眰wms鎶ラ敊锛寋}", e.getMessage());
+//        } finally {
+//            addApiLog("鍏ュ簱浠诲姟璇锋眰鑾峰彇搴撲綅", wmsUrl + inboundTaskApplyPath, JSON.toJSONString(wmsParam), response, success);
+//        }
+          return null;
     }
 
 

--
Gitblit v1.9.1