| | |
| | | * @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; |
| | | } |
| | | } |
| | | |
| | |
| | | // 获取工作状态为11(生成出库ID)的出库工作档 |
| | | List<WrkMast> wrkMasts = wrkMastMapper.selectPakOutStep107(slave.getId(), crnStn.getStaNo()); |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | if (wrkMast == null || wrkMast.getPltType() == 2) { |
| | | // if (wrkMast == null || wrkMast.getPltType() == 2) { |
| | | // continue; |
| | | // } |
| | | if (wrkMast == null){ |
| | | continue; |
| | | } |
| | | // 工作档状态判断 |