From 6aeb5730b008eda9f9b6797f457f7a257ec5ed14 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 18 六月 2021 15:44:47 +0800 Subject: [PATCH] # pda入库时自动查找推荐货位 --- src/main/java/zy/cloud/wms/common/service/erp/ErpService.java | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/java/zy/cloud/wms/common/service/erp/ErpService.java b/src/main/java/zy/cloud/wms/common/service/erp/ErpService.java index 6a1f4cf..4404926 100644 --- a/src/main/java/zy/cloud/wms/common/service/erp/ErpService.java +++ b/src/main/java/zy/cloud/wms/common/service/erp/ErpService.java @@ -70,7 +70,7 @@ detl.setUnit(mat==null?"鏆傛棤":mat.getUnit()); detail.add(detl); } - System.out.println(JSON.toJSONString(uploadBill)); + log.warn(JSON.toJSONString(uploadBill)); String response = new HttpHandler.Builder() .setUri(ErpScheduler.URI) .setPath(ErpScheduler.UPLOAD_BILL) @@ -78,13 +78,18 @@ .build() .doPost(); - // 鏃ュ織璁板綍 - RequestLog logInfo = new RequestLog(); - logInfo.setName("鍗曟嵁涓婁紶锛屽崟鎹被鍨�" + docId.toString()); - logInfo.setRequest(JSON.toJSONString(uploadBill)); // 鍏ュ弬 - logInfo.setResponse(response); // 鍑哄弬 - logInfo.setCreateTime(new Date()); - requestLogService.insert(logInfo); + try { + // 鏃ュ織璁板綍 + RequestLog logInfo = new RequestLog(); + logInfo.setName("鍗曟嵁涓婁紶锛屽崟鎹被鍨�" + docId.toString()); + logInfo.setRequest(JSON.toJSONString(uploadBill)); // 鍏ュ弬 + logInfo.setResponse(response); // 鍑哄弬 + logInfo.setCreateTime(new Date()); + requestLogService.insert(logInfo); + } catch (Exception e) { + log.error(e.getMessage()); + } + if (!Cools.isEmpty(response)) { log.warn(response); -- Gitblit v1.9.1