| | |
| | | WrkMast wrkMast = wrkMastMapper.selectPickStep(barcode); |
| | | if (wrkMast == null) { |
| | | // 无拣料数据 |
| | | log.info("无拣料数据,托盘码:{}",barcode); |
| | | continue; |
| | | } |
| | | if ((wrkMast.getIoType() != 103 && wrkMast.getIoType() != 104 && wrkMast.getIoType() != 107) || Cools.isEmpty(wrkMast.getStaNo()) || Cools.isEmpty(wrkMast.getSourceStaNo())) { |
| | | log.info("工作档入出库类型不符合,入出库类型:{},工作档目标站{},工作档源站{}",wrkMast.getIoType(),wrkMast.getStaNo(),wrkMast.getSourceStaNo()); |
| | | continue; |
| | | } |
| | | // 获取目标站 |
| | |
| | | * @return |
| | | */ |
| | | private Integer getCrnStation(String locNo) { |
| | | String bay = locNo.substring(2, 5); |
| | | String bay = locNo.substring(2, 5);//0100203 |
| | | if (Integer.parseInt(bay) == 1) { |
| | | return 1; |
| | | } else if (Integer.parseInt(bay) == 29) { |
| | | return 2; |
| | | } |
| | | if (Integer.parseInt(locNo.substring(0, 2)) >= 14) { |
| | | return 1; |
| | | } else { |
| | | // if (Integer.parseInt(locNo.substring(0, 2)) >= 14) { |
| | | if (Integer.parseInt(bay) >= 14) { |
| | | return 2; |
| | | } else { |
| | | return 1; |
| | | } |
| | | } |
| | | |