Explorar el Código

对接改为正式接口

hu hace 1 año
padre
commit
392ebb63f6

+ 1 - 1
src/custom/service/AftersalesmagAutoRecheckService.java

@@ -65,7 +65,7 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
 
                     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);
                     try {

+ 2 - 2
src/custom/service/DispatchAutoCloseService.java

@@ -74,7 +74,7 @@ public class DispatchAutoCloseService extends ServiceController {
 
                     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);
 
                     try {
@@ -200,7 +200,7 @@ public class DispatchAutoCloseService extends ServiceController {
 
                     HashMap<String, String> map = new HashMap<>();
                     map.put("content-Type", "application/json");
-                    String result = new WebRequest().doPost(jsonobject.toString(), "http://124.71.196.182:8101/rest/ws_v2/basicDrp", map);
+                    String result = new WebRequest().doPost(jsonobject.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
                     JSONObject resultobject = JSONObject.parseObject(result);
                     if (resultobject.getString("errcode").equals("0")) {
                         Rows rowsOrderDetail = dbConnect.runSqlQuery("select t1.undeliqty,t1.deliedqty,t1.qty,t1.sa_orderitemsid from sa_orderitems t1 where t1.sa_orderitemsid in (select sa_orderitemsid from sa_dispatch_items where sa_dispatchid=" + sa_dispatchid + ")");

+ 14 - 14
src/custom/utility/ERPDocking.java

@@ -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")){