|
|
@ -700,7 +700,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
} |
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
|
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
|
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1") && !StrUtil.equals(dto.getTask_status(), "0")) { |
|
|
|
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code()); |
|
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
|
feed_jo.put("task_id", entity.getExt_task_id()); |
|
|
@ -966,7 +966,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
entity.getStart_device_code(), |
|
|
|
entity.getNext_device_code(), |
|
|
|
entity.getRoute_plan_code()); |
|
|
|
if (ObjectUtil.isNotEmpty(shortPathsList)){ |
|
|
|
if (ObjectUtil.isNotEmpty(shortPathsList)) { |
|
|
|
String type = shortPathsList.get(0).getType(); |
|
|
|
// != 0 为agv任务
|
|
|
|
if (!StrUtil.equals(type, "0")) { |
|
|
@ -1015,7 +1015,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
entity.getStart_device_code(), |
|
|
|
entity.getNext_device_code(), |
|
|
|
entity.getRoute_plan_code()); |
|
|
|
if (ObjectUtil.isNotEmpty(shortPathsList)){ |
|
|
|
if (ObjectUtil.isNotEmpty(shortPathsList)) { |
|
|
|
String type = shortPathsList.get(0).getType(); |
|
|
|
// != 0 为agv任务
|
|
|
|
if (!StrUtil.equals(type, "0")) { |
|
|
|