|
@@ -80,7 +80,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(object.toString());
|
|
|
System.out.println(resultobject.toJSONString());
|
|
@@ -118,7 +118,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
if(resultobject.getString("errcode").equals("0")){
|
|
|
return resultobject.getJSONObject("results").getJSONArray("list");
|
|
@@ -158,7 +158,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
if(resultobject.getString("errcode").equals("0")){
|
|
|
return resultobject.getJSONObject("results").getJSONArray("list");
|
|
@@ -214,7 +214,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
saveLog(controller,"sa_dispatch",sa_dispatchid,"创建erp发货单",object.toString(),resultobject,dispatchRow.getString("billno"));
|
|
@@ -246,7 +246,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
@@ -291,7 +291,7 @@ public class ERPDocking {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
System.out.println(object.toString());
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
@@ -322,7 +322,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
saveLog(controller,"sa_dispatch",sa_dispatchid,"关闭发货单",object.toString(),resultobject,billno);
|
|
@@ -360,7 +360,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
saveLog(controller,"sa_dispatch",sa_dispatchid,"发货单行关闭",object.toString(),resultobject,billno);
|
|
@@ -419,7 +419,7 @@ public class ERPDocking {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
System.out.println(object.toString());
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
saveLog(controller,"sa_aftersalesmag",sa_aftersalesmagid,"创建erp退/换货单",object.toString(),resultobject,aftersalesmagRow.getString("billno"));
|
|
@@ -451,7 +451,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
@@ -494,7 +494,7 @@ public class ERPDocking {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
System.out.println(object.toString());
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
@@ -525,7 +525,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
saveLog(controller,"sa_aftersalesmag",sa_aftersalesmagid,"复核erp退/换货单",object.toString(),resultobject,billno);
|
|
@@ -624,7 +624,7 @@ public class ERPDocking {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
System.out.println(object.toString());
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
@@ -653,7 +653,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
if(resultobject.getString("errcode").equals("0")){
|