| | |
| | | } |
| | | |
| | | // 过滤盘点/拣料/并板任务 |
| | | if (null != wrkMastMapper.selectPickStepByBarcode(barcode)) { |
| | | WrkMast wrkMast1 = wrkMastMapper.selectPickStepByBarcode(barcode); |
| | | if (null != wrkMast1) { |
| | | // plc 处理 |
| | | barcodeThread.setBarcode(""); |
| | | staProtocol.setWorkNo(wrkMast1.getWrkNo().shortValue()); |
| | | staProtocol.setStaNo(wrkMast1.getStaNo().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | if (!result) { |
| | | throw new CoolException("更新plc站点信息失败"); |
| | | } |
| | | continue; |
| | | } |
| | | |