| | |
| | | // && (staProtocol.getWorkNo() > 0) |
| | | && staProtocol.isPakMk()) { |
| | | |
| | | WrkMast wrkMast = null; |
| | | if (pickSta.getStaNo() == 325 || pickSta.getStaNo() == 331 || pickSta.getStaNo() == 333 || pickSta.getStaNo() == 339) { |
| | | if (staProtocol.getWorkNo() == 0) { |
| | | continue; |
| | | } |
| | | //根据工作号搜索工作档 |
| | | wrkMast = wrkMastMapper.selectByWorkNo(staProtocol.getWorkNo().intValue()); |
| | | }else { |
| | | //根据托盘码搜索工作档 |
| | | // 获取条码扫描仪信息 |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, pickSta.getBarcode()); |
| | | if (barcodeThread == null) { |
| | | continue; |
| | | } |
| | | String barcode = barcodeThread.getBarcode(); |
| | | if (Cools.isEmpty(barcode)) { |
| | | continue; |
| | | } |
| | | if ("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) { |
| | | continue; |
| | | } |
| | | wrkMast = wrkMastMapper.selectByBarcode(barcode); |
| | | // 获取条码扫描仪信息 |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, pickSta.getBarcode()); |
| | | if (barcodeThread == null) { |
| | | continue; |
| | | } |
| | | |
| | | String barcode = barcodeThread.getBarcode(); |
| | | if (Cools.isEmpty(barcode)) { |
| | | continue; |
| | | } |
| | | if ("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) { |
| | | continue; |
| | | } |
| | | WrkMast wrkMast = wrkMastMapper.selectByBarcode(barcode); |
| | | if (wrkMast == null) {//找不到工作档 |
| | | continue; |
| | | } |