|
|
@@ -87,7 +87,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:8001/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(object.toString(), erpDocking.getUrl(), map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
try {
|
|
|
@@ -217,7 +217,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:8001/rest/ws_v2/basicDrp", map);
|
|
|
+ String result = new WebRequest().doPost(jsonobject.toString(), erpDocking.getUrl(), 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 + ")");
|