| | |
| | | @Transactional |
| | | public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, int times) { |
| | | |
| | | if (sourceStaNo.equals(202)) { |
| | | whsType = 1; |
| | | locTypeDto.setLocType1((short) 1); |
| | | } else if (sourceStaNo.equals(206)) { |
| | | whsType = 2; |
| | | locTypeDto.setLocType1((short) 2); |
| | | } |
| | | |
| | | whsType = 1; |
| | | locTypeDto.setLocType1((short) 1); |
| | | StartupDto startupDto = new StartupDto(); |
| | | RowLastno rowLastno = rowLastnoService.selectById(whsType); |
| | | if (Cools.isEmpty(rowLastno)) { |
| | |
| | | int crnNo = crn_qty; |
| | | // 目标库位 |
| | | LocMast locMast = null; |
| | | |
| | | crnNo=2; |
| | | if (curRow == 3) { |
| | | curRow = 4; |
| | | } else if (curRow == 4) { |
| | | curRow = 3; |
| | | } else { |
| | | rowCount = 0; |
| | | crnNo=1; |
| | | } |
| | | |
| | | if (crnNo == 0) { |
| | | throw new CoolException("没有可用的堆垛机"); |