|
|
@@ -82,8 +82,8 @@ public class ERPDocking {
|
|
|
map.put("content-Type", "application/json");
|
|
|
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());
|
|
|
+ //System.out.println(object.toString());
|
|
|
+ //System.out.println(resultobject.toJSONString());
|
|
|
if(resultobject.getString("errcode").equals("0")){
|
|
|
return resultobject.getJSONObject("results").getJSONArray("list");
|
|
|
}else {
|
|
|
@@ -248,7 +248,7 @@ public class ERPDocking {
|
|
|
map.put("content-Type", "application/json");
|
|
|
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);
|
|
|
+ //System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
|
return new JSONArray();
|
|
|
}else {
|
|
|
@@ -289,10 +289,10 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- System.out.println(object.toString());
|
|
|
+ //System.out.println(object.toString());
|
|
|
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);
|
|
|
+ //System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
|
return new JSONArray();
|
|
|
}else {
|
|
|
@@ -417,7 +417,7 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- System.out.println(object.toString());
|
|
|
+ //System.out.println(object.toString());
|
|
|
String result = new WebRequest().doPost(object.toString(), "http://124.71.196.182:8001/rest/ws_v2/basicDrp", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
@@ -452,7 +452,7 @@ public class ERPDocking {
|
|
|
map.put("content-Type", "application/json");
|
|
|
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);
|
|
|
+ //System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
|
return new JSONArray();
|
|
|
}else {
|
|
|
@@ -492,10 +492,10 @@ public class ERPDocking {
|
|
|
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("content-Type", "application/json");
|
|
|
- System.out.println(object.toString());
|
|
|
+ //System.out.println(object.toString());
|
|
|
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);
|
|
|
+ //System.out.println(resultobject);
|
|
|
if(resultobject.getString("errcode").equals("error")){
|
|
|
return new JSONArray();
|
|
|
}else {
|