| | |
| | | List<Integer> path = JSON.parseArray(JSON.toJSONString(original.getNavigatePath(), SerializerFeature.DisableCircularReferenceDetect), Integer.class); |
| | | List<Integer> liftTransferPath = JSON.parseArray(JSON.toJSONString(original.getLiftTransferPath(), SerializerFeature.DisableCircularReferenceDetect), Integer.class); |
| | | if (path == null || path.isEmpty()) { |
| | | // 同站点任务不会生成路径,但仍需下发命令写入任务数据 |
| | | if (Objects.equals(original.getStationId(), original.getTargetStaNo())) { |
| | | while (true) { |
| | | CommandResponse commandResponse = sendCommand(original); |
| | | if (commandResponse != null && commandResponse.getResult()) { |
| | | break; |
| | | } |
| | | try { |
| | | Thread.sleep(200); |
| | | } catch (Exception ignore) {} |
| | | } |
| | | } |
| | | return; |
| | | } |
| | | |