|
@@ -268,6 +268,7 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreatePurInStock";
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreatePurInStock";
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
Error error = new Error();
|
|
|
int type = 0;
|
|
int type = 0;
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
@@ -281,15 +282,14 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.parseObject((String) result.get("data")).get("result").toString());
|
|
JSONObject jsonObject = JSONObject.parseObject(JSON.parseObject((String) result.get("data")).get("result").toString());
|
|
|
if (jsonObject.get("State").toString().equals("0")) {
|
|
if (jsonObject.get("State").toString().equals("0")) {
|
|
|
//如果失败存入报错信息跟数据
|
|
//如果失败存入报错信息跟数据
|
|
|
- error.setErrorInfo(jsonObject.get("Msg").toString());
|
|
|
|
|
|
|
+ error.setErrorInfo(jsonObject.get("FailReason").toString());
|
|
|
error.setUrl(url);
|
|
error.setUrl(url);
|
|
|
error.setDataVal(returnData.toJSONString()).setType("入库回传");
|
|
error.setDataVal(returnData.toJSONString()).setType("入库回传");
|
|
|
errorMapper.addError(error);
|
|
errorMapper.addError(error);
|
|
|
type = 1;
|
|
type = 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- //删除父子表信息
|
|
|
|
|
- askGoodsMapper.delPlugOutWarehousing(returnWarehousing.getOrderNumber());
|
|
|
|
|
|
|
+
|
|
|
//添加记录到tld_access
|
|
//添加记录到tld_access
|
|
|
String names = "入库回传";
|
|
String names = "入库回传";
|
|
|
String accessType = "1";
|
|
String accessType = "1";
|
|
@@ -298,6 +298,8 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
//增加流水传输状态
|
|
//增加流水传输状态
|
|
|
warehousingMapper.updateWarehousingType(returnWarehousing.getStorageCode(), type);
|
|
warehousingMapper.updateWarehousingType(returnWarehousing.getStorageCode(), type);
|
|
|
}
|
|
}
|
|
|
|
|
+ //删除父子表信息
|
|
|
|
|
+ askGoodsMapper.delPlugOutWarehousing(orderNumber);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|