|
|
@ -184,7 +184,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wcsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -209,7 +209,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wmsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -245,7 +245,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -293,7 +293,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -381,7 +381,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wcsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -406,7 +406,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wmsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -442,7 +442,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -490,7 +490,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -575,7 +575,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wcsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -600,7 +600,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wmsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -636,7 +636,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -682,7 +682,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -761,7 +761,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wcsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -786,7 +786,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
wmsFlag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -822,7 +822,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
|
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -870,7 +870,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -952,16 +952,16 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
|
|
|
|
if (driver.getMode() != 0) { |
|
|
|
if ("1".equals(paramService.findByCode(AcsConfig.HASWMS).getValue()) |
|
|
|
&& "true".equals(device.getExtraValue().get("reqWms"))) { |
|
|
|
) { |
|
|
|
JSONObject form = new JSONObject(); |
|
|
|
form.put("vehicle_code", inst.getVehicle_code()); |
|
|
|
form.put("vehicle_code", ""); |
|
|
|
form.put("status", 5); |
|
|
|
form.put("device_code", device_code); |
|
|
|
form.put("task_code", inst.getTask_code()); |
|
|
|
form.put("task_code", ""); |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
@ -1026,16 +1026,16 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
|
|
|
|
|
if (driver.getMode() != 0) { |
|
|
|
if ("1".equals(paramService.findByCode(AcsConfig.HASWMS).getValue()) |
|
|
|
&& "true".equals(device.getExtraValue().get("reqWms"))) { |
|
|
|
) { |
|
|
|
JSONObject form = new JSONObject(); |
|
|
|
form.put("vehicle_code", inst.getVehicle_code()); |
|
|
|
form.put("vehicle_code", ""); |
|
|
|
form.put("status", 6); |
|
|
|
form.put("device_code", device_code); |
|
|
|
form.put("task_code", inst.getTask_code()); |
|
|
|
form.put("task_code", ""); |
|
|
|
JSONObject result = acsToWmsService.feedAgvTaskStatus(new JSONArray() {{ |
|
|
|
add(form); |
|
|
|
}}); |
|
|
|
if (HttpStatus.HTTP_OK == result.getIntValue("status")) { |
|
|
|
if (20000 == result.getIntValue("code")) { |
|
|
|
flag = true; |
|
|
|
} else { |
|
|
|
String resultMessage = result.getString("message"); |
|
|
|