|
|
@ -306,6 +306,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
//取货完成
|
|
|
|
pickupComplete(schBaseTask, status, is_connector, task_type); |
|
|
|
break; |
|
|
|
case "3": |
|
|
|
//申请放货
|
|
|
|
requestRelease(schBaseTask, status, is_connector); |
|
|
|
break; |
|
|
|
case "4": |
|
|
|
//放货完成
|
|
|
|
releaseComplete(schBaseTask, status, is_connector, task_type, is_empty); |
|
|
@ -494,6 +498,41 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("2".equals(is_connector)) { |
|
|
|
//反馈connector申请取货
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
json.put("vehicle_code", schBaseTask.getVehicle_code()); |
|
|
|
json.put("status", status); |
|
|
|
json.put("device_code", schBaseTask.getPoint_code1()); |
|
|
|
json.put("task_code", schBaseTask.getTask_code()); |
|
|
|
boolean flag = true; |
|
|
|
AcsResponse acsResponse = sortingService.feedAgvTaskStatus(json); |
|
|
|
if (acsResponse.getStatus() != 200 || StringUtils.isNotEmpty(acsResponse.getErrMsg())) { |
|
|
|
throw new BadRequestException("申请失败,"+ acsResponse.getErrMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 申请放货 |
|
|
|
* @param schBaseTask |
|
|
|
* @param status |
|
|
|
* @param is_connector |
|
|
|
*/ |
|
|
|
private void requestRelease(SchBaseTask schBaseTask, String status, String is_connector) { |
|
|
|
if ("2".equals(is_connector)) { |
|
|
|
//反馈connector申请取货
|
|
|
|
JSONObject json = new JSONObject(); |
|
|
|
json.put("vehicle_code", schBaseTask.getVehicle_code()); |
|
|
|
json.put("status", status); |
|
|
|
json.put("device_code", schBaseTask.getPoint_code1()); |
|
|
|
json.put("task_code", schBaseTask.getTask_code()); |
|
|
|
boolean flag = true; |
|
|
|
AcsResponse acsResponse = sortingService.feedAgvTaskStatus(json); |
|
|
|
if (acsResponse.getStatus() != 200 || StringUtils.isNotEmpty(acsResponse.getErrMsg())) { |
|
|
|
throw new BadRequestException("申请失败,"+ acsResponse.getErrMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|