| | |
| | | param.setIoType(10); |
| | | param.setSourceStaNo(122); |
| | | param.setLocType1((short)1); |
| | | param.setRgvNo(rgvProtocol.getRgvNo()); |
| | | String response = new HttpHandler.Builder() |
| | | .setUri(wmsUrl) |
| | | .setPath("/rpc/pakin/empty/loc/v1") |
| | |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, led.getDevpPlcId()); |
| | | // 命令集合 |
| | | List<LedCommand> commands = new ArrayList<>(); |
| | | // 工作档集合 |
| | | String orderNo = null; |
| | | // 工作档集合 |
| | | List<WrkMast> wrkMasts = new ArrayList<>(); |
| | | for (Integer staNo : led.getStaArr()) { |
| | | // 获取叉车站点 |
| | |
| | | // ledCommand.setSourceStaNo(wrkMast.getSourceStaNo()); |
| | | if (wrkMast.getIoType() != 110 && wrkMast.getIoType() != 10) { |
| | | List<WrkDetl> wrkDetls = wrkDetlService.findByWorkNo(wrkMast.getWrkNo()); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl))); |
| | | if (Cools.isEmpty(wrkDetls)){ |
| | | continue; |
| | | } |
| | | Integer count1 = wrkDetlService.count1(); |
| | | Integer count2 = wrkDetlService.count2(wrkDetls.get(0).getOrderNo()); |
| | | Integer count3 = wrkDetlService.count3(); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl,count1,count2,count3))); |
| | | } |
| | | commands.add(ledCommand); |
| | | } |
| | |
| | | if (!staProtocol.isLoading()){ |
| | | continue; |
| | | } |
| | | StaProtocol staProtocol120 = devpThread.getStation().get(120); |
| | | if (staProtocol120 == null) { |
| | | continue; |
| | | } else { |
| | | staProtocol120 = staProtocol120.clone(); |
| | | } |
| | | |
| | | if (staProtocol120.isLoading()){ |
| | | continue; |
| | | } |
| | | StaProtocol staProtocol121 = devpThread.getStation().get(121); |
| | | if (staProtocol121 == null) { |
| | | continue; |
| | | } else { |
| | | staProtocol121 = staProtocol121.clone(); |
| | | } |
| | | |
| | | if (staProtocol121.isLoading()){ |
| | | continue; |
| | | } |
| | | // if (!staProtocol.getWorkNo().equals(wrkMast131.getWrkNo())){ |
| | | // log.info("站点工作号={} 与贴标工作号={} 不一致,异常!",staProtocol.getWorkNo(),wrkMast131.getWrkNo().shortValue()); |
| | | // } |