| | |
| | | */ |
| | | @Transactional |
| | | public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, int times) { |
| | | whsType = getWhsType(staDescId, times); |
| | | whsType = getWhsType(sourceStaNo, times); |
| | | StartupDto startupDto = new StartupDto(); |
| | | // 生成工作号 |
| | | int workNo = getWorkNo(0); |
| | |
| | | /** |
| | | * 根据入库站获取库位排号分配 |
| | | */ |
| | | private Integer getWhsType(Integer staDescId, int times) { |
| | | private Integer getWhsType(Integer sourceStaNo, int times) { |
| | | if (times >= 16) { |
| | | return 4; |
| | | } |
| | | switch (staDescId) { |
| | | switch (sourceStaNo) { |
| | | case 173: |
| | | case 176: |
| | | case 180: |
| | |
| | | case 226: |
| | | return 3; |
| | | default: |
| | | throw new CoolException("根据入库站获取库位排号分配失败,入库站:" + staDescId); |
| | | throw new CoolException("根据入库站获取库位排号分配失败,入库站:" + sourceStaNo); |
| | | } |
| | | } |
| | | |