| | |
| | | String barcode = barcodeThread.getBarcode(); |
| | | if (!Cools.isEmpty(barcode) && !barcode.equals("99999999")) { |
| | | // 请求wms接口,获取工作号和目标库位 |
| | | ToWmsDTO toWmsDTO = new ToWmsDTO(barcode, staProtocol.getSiteId(), 0); |
| | | ToWmsDTO toWmsDTO = new ToWmsDTO(staProtocol.getSiteId(),staProtocol.getGrossWt(),barcode, 0); |
| | | TaskWrk taskWrk1 = taskWrkService.selectOne(new EntityWrapper<TaskWrk>().eq("barcode", barcode)); |
| | | if (!Cools.isEmpty(taskWrk1)) { |
| | | log.info("托盘码:" + barcode + "任务档存在"); |
| | |
| | | } |
| | | // 获取工作档数据 |
| | | LedCommand ledCommand = new LedCommand(); |
| | | //请求wms |
| | | |
| | | // |
| | | // ledCommand.setWorkNo(wrkMast.getWrkNo()); |
| | | // ledCommand.setIoType(wrkMast.getIoType()); |
| | | // ledCommand.setTitle("空板出库"); |
| | | // ledCommand.setEmptyMk(true); |
| | | // ledCommand.setSourceLocNo(wrkMast.getSourceLocNo()); |
| | | // ledCommand.setLocNo(wrkMast.getLocNo()); |
| | | // ledCommand.setStaNo(wrkMast.getStaNo()); |
| | | MatDto matDto = new MatDto(); |
| | | ledCommand.getMatDtos().add(matDto); |
| | | commands.add(ledCommand); |
| | | } |
| | | Set<Integer> workNos = wrkMasts.stream().map(WrkMast::getWrkNo).collect(Collectors.toSet()); |