|  |  | 
 |  |  |                         param.setBarcode(barcode); | 
 |  |  |                         param.setIoType(1); | 
 |  |  |                         param.setSourceStaNo(inSta.getStaNo()); | 
 |  |  | //                        param.setLocType1(locTypeDto.getLocType1()); | 
 |  |  |                         param.setLocType1(locTypeDto.getLocType1()); | 
 |  |  |                         String response = new HttpHandler.Builder() | 
 |  |  |                                 .setUri(wmsUrl) | 
 |  |  |                                 .setPath("/rpc/pakin/loc/v1") | 
 |  |  | 
 |  |  |                 continue; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         // 根据输送线plc遍历 | 
 |  |  |         for (DevpSlave devp : slaveProperties.getDevp()) { | 
 |  |  |             // 遍历入库站 | 
 |  |  |             for (DevpSlave.StaRack staRack : devp.getRackInStn()) { | 
 |  |  |                 // 获取入库站信息 | 
 |  |  |                 DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId()); | 
 |  |  |                 StaProtocol staProtocol = devpThread.getStation().get(staRack.getStaNo()); | 
 |  |  |                 if (staProtocol == null) { | 
 |  |  |                     continue; | 
 |  |  |                 } else { | 
 |  |  |                     staProtocol = staProtocol.clone(); | 
 |  |  |                 } | 
 |  |  |                 Short workNo = staProtocol.getWorkNo(); | 
 |  |  |                 BasDevp basDevp = basDevpService.selectById(staProtocol.getSiteId()); | 
 |  |  |                 if (basDevp == null) { | 
 |  |  |                     continue;//站点信息不存在 | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 // 判断是否满足入库条件,自动、有物、四向穿梭车可取信号 | 
 |  |  |                 if (!(staProtocol.isAutoing() && staProtocol.isLoading() && staProtocol.isShuttleTakeEnable())) { | 
 |  |  |                     continue; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    /** | 
 |  |  | 
 |  |  |  | 
 |  |  |             //获取提升机命令 | 
 |  |  |             NyLiftCommand liftCommand = NyLiftUtils.getLiftCommand(liftProtocol.getLiftNo().intValue(), NyLiftTaskModelType.MOVE_TRAY.id, startSta, targetSta, wrkMast.getWrkNo()); | 
 |  |  |             if (wrkMast.getIoType() == 53) { | 
 |  |  |                 //拣料再回库,重新分配设备工作号 | 
 |  |  |                 Random random = new Random(); | 
 |  |  |                 int deviceWrk = Math.abs((liftCommand.getTaskNo().intValue() + random.nextInt(9999)));//获取设备工作号 | 
 |  |  |                 liftCommand.setTaskNo((short) deviceWrk); | 
 |  |  |             } | 
 |  |  |             ArrayList<NyLiftCommand> commands = new ArrayList<>(); | 
 |  |  |             commands.add(liftCommand); | 
 |  |  |  | 
 |  |  | 
 |  |  |                 NyLiftCommand liftCommand = NyLiftUtils.getLiftCommand(liftProtocol.getLiftNo().intValue(), NyLiftTaskModelType.MOVE_CAR.id, sourceLiftSta.getStaNo(), sourceLiftSta.getStaNo(), wrkMast.getWrkNo()); | 
 |  |  |  | 
 |  |  |                 Random random = new Random(); | 
 |  |  |                 liftCommand.setTaskNo((short) Math.abs((liftCommand.getTaskNo().intValue() + random.nextInt(9999))));//更换随机任务号 | 
 |  |  |                 int deviceWrk = Math.abs((liftCommand.getTaskNo().intValue() + random.nextInt(9999)));//获取设备工作号 | 
 |  |  |                 liftCommand.setTaskNo((short) deviceWrk);//更换随机任务号 | 
 |  |  |  | 
 |  |  |                 ArrayList<NyLiftCommand> commands = new ArrayList<>(); | 
 |  |  |                 commands.add(liftCommand); | 
 |  |  | 
 |  |  | //            NavigateNode liftNode = new NavigateNode(basLift.getPoint$().getX(), basLift.getPoint$().getY()); | 
 |  |  | //            liftNode.setZ(basLift.getPoint$().getZ()); | 
 |  |  |  | 
 |  |  |             //小车已经在目标库位,直接认定小车移动任务完成 | 
 |  |  |             if (shuttleProtocol.getCurrentLocNo().equals(wrkMast.getLocNo())) { | 
 |  |  |                 if (shuttleProtocol.getToken().equals(wrkMast.getWrkNo())) { | 
 |  |  |                     //释放小车令牌 | 
 |  |  |                     shuttleProtocol.setToken(0); | 
 |  |  |                 } | 
 |  |  |                 wrkMast.setWrkSts(111L);//111.小车移动完成 | 
 |  |  |                 wrkMast.setLiftNo(null);//释放提升机 | 
 |  |  |                 wrkMast.setModiTime(now); | 
 |  |  |                 wrkMastMapper.updateById(wrkMast); | 
 |  |  |  | 
 |  |  |                 if (wrkMast.getWrkSts() == 111) { | 
 |  |  |                     // 保存工作主档历史档 | 
 |  |  |                     if (wrkMastLocMapper.save(wrkMast.getWrkNo()) <= 0) { | 
 |  |  |                         log.info("保存工作历史档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |                     } | 
 |  |  |                     // 删除工作主档 | 
 |  |  |                     if (!wrkMastService.deleteById(wrkMast)) { | 
 |  |  |                         log.info("删除工作主档[workNo={0}]失败", wrkMast.getWrkNo()); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 return false; | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             //获取小车到目标库位命令 | 
 |  |  |             NyShuttleOperaResult result = NyShuttleOperaUtils.getStartToTargetCommands(shuttleThread.getSlave().getId(), wrkMast.getWrkNo(), shuttleProtocol.getCurrentLocNo(), wrkMast.getLocNo(), NavigationMapType.NORMAL.id); | 
 |  |  |             if (result == null) { |