From ff928400110d728d45105c7988b3f61faf51088e Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期六, 26 六月 2021 09:36:30 +0800
Subject: [PATCH] 配置调整
---
src/main/java/com/slcf/controller/StockController.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/slcf/controller/StockController.java b/src/main/java/com/slcf/controller/StockController.java
index 466b5ea..02de680 100644
--- a/src/main/java/com/slcf/controller/StockController.java
+++ b/src/main/java/com/slcf/controller/StockController.java
@@ -278,13 +278,14 @@
// lines = new String(lines.getBytes(), "utf-8");
// sb.append(lines);
// }
+ logger.error("syncStocksFromSap---鍚屾搴撳瓨杩斿洖鏁版嵁" + sb.toString());
//瑙f瀽json锛屾洿鏂板簱瀛�
JSONObject json = JSONObject.fromObject(sb.toString());
String d = json.get("d").toString();
JSONObject jsonItem = JSONObject.fromObject(d);
String results = jsonItem.get("results").toString();
JSONArray array = JSONArray.fromObject(results);
-
+
result = locDetailService.delLocDetailByLocNo(loc_no);
if(array.size()>0) {
for(int i=0;i<array.size();i++){
@@ -296,6 +297,7 @@
String altme = job.get("altme").toString();
LocDetailBean locDetl = new LocDetailBean();
+// logger.error("syncStocksFromSap---鎻掑叆鏁版嵁" + matnr+"-"+maktx+"-"+werks+"-"+gesme+"-"+altme);
locDetl.setLoc_no(loc_no);
locDetl.setMatnr(matnr);
locDetl.setLgnum("385");
@@ -309,12 +311,15 @@
locDetl.setZpallet(barcode);
locDetl.setBname("");
result = locDetailService.insertLocDetail(locDetl);
+// logger.error("syncStocksFromSap---鎻掑叆缁撴灉" + result);
+
if(result<=0) {
break;
}
}
}
} catch (Exception e) {
+ logger.error("sendSyncStockCmd Error----" + e.getMessage());
System.out.println(e.getMessage());
}
return result;
--
Gitblit v1.9.1