|
|
@@ -374,10 +374,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")){
|
|
|
for(JSONObject jsonObject2 : retunList){
|
|
|
if(jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("WareHouse").toString().equals(map.get("WareHouse"))){
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("ReqOutStocks", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("出库回传");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("出库回传");
|
|
|
errorMapper.addError(error);
|
|
|
List<JSONObject> list = (List<JSONObject>) jsonObject2.get("BillItems");
|
|
|
for(JSONObject jsonObject3 : list){
|
|
|
@@ -807,10 +818,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")){
|
|
|
for(JSONObject jsonObject2 : retunList){
|
|
|
if(jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("WareHouse").toString().equals(map.get("WareHouse"))){
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("BILLs", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("销售出库");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("销售出库");
|
|
|
errorMapper.addError(error);
|
|
|
List<JSONObject> list = (List<JSONObject>) jsonObject2.get("BillItems");
|
|
|
for(JSONObject jsonObject3 : list){
|
|
|
@@ -957,10 +979,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")) {
|
|
|
for (JSONObject jsonObject2 : retunList) {
|
|
|
if (jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("FromWareHouse").toString().equals(map.get("FromWareHouse"))) {
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("BILLs", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("移库");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("移库");
|
|
|
errorMapper.addError(error);
|
|
|
}
|
|
|
}
|
|
|
@@ -1072,10 +1105,13 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
retunList2.add(jsonObject2);
|
|
|
+
|
|
|
JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
ReqOutStocks1.put("BILLs", retunList2);
|
|
|
+
|
|
|
JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
error.setDataVal(ReqOutStocks2.toJSONString()).setType("生产收货");
|
|
|
@@ -1185,10 +1221,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")) {
|
|
|
for (JSONObject jsonObject2 : retunList) {
|
|
|
if (jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("WareHouse").toString().equals(map.get("WareHouse"))) {
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("BILLs", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("其它入库");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("其它入库");
|
|
|
errorMapper.addError(error);
|
|
|
}
|
|
|
}
|
|
|
@@ -1290,10 +1337,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")) {
|
|
|
for (JSONObject jsonObject2 : retunList) {
|
|
|
if (jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("WareHouse").toString().equals(map.get("WareHouse"))) {
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("ReqOutStocks", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("其它出库");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("其它出库");
|
|
|
errorMapper.addError(error);
|
|
|
}
|
|
|
}
|
|
|
@@ -1397,10 +1455,21 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
if (map.get("State").toString().equals("0")) {
|
|
|
for (JSONObject jsonObject2 : retunList) {
|
|
|
if (jsonObject2.get("WMSCode").toString().equals(map.get("WMSCode")) && jsonObject2.get("WareHouse").toString().equals(map.get("WareHouse"))) {
|
|
|
+
|
|
|
+ //如果失败存入报错信息跟数据
|
|
|
+ List<JSONObject> retunList2 = new LinkedList<>();
|
|
|
+ retunList2.add(jsonObject2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks1 = new JSONObject();
|
|
|
+ ReqOutStocks1.put("ReqOutStocks", retunList2);
|
|
|
+
|
|
|
+ JSONObject ReqOutStocks2 = new JSONObject();
|
|
|
+ ReqOutStocks2.put("strJson",ReqOutStocks1);
|
|
|
+
|
|
|
//如果失败存入报错信息跟数据
|
|
|
error.setErrorInfo(map.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
|
- error.setDataVal(jsonObject2.toString()).setType("其它出库");
|
|
|
+ error.setDataVal(ReqOutStocks2.toString()).setType("其它出库");
|
|
|
errorMapper.addError(error);
|
|
|
}
|
|
|
}
|